   # then we'll have to refactor some of this code, I suppose.
   $ = jQuery # In case we're in compability mode.
   tabId = $("#anchortab-loader").data('tab-id')
-  tabJson = "http://" + apiDomain + "/api/v1/embed/" + tabId
+  tabJson = "//" + apiDomain + "/api/v1/embed/" + tabId
 
   $.ajax
     url: tabJson

  # Load the Anchor Tab stylesheet.
  atStyleSheet =
    $("<link />")
      .attr("href", "http://" + resourcesDomain + "/stylesheets/tab.css")
      .attr("rel", "stylesheet")
      .attr("type", "text/css")

  $("head").append atStyleSheet



withJQueryLoaded = (callback) ->
  if ! jQuery?
    loadScript("//ajax.googleapis.com/ajax/libs/jquery/" + jqVersion + "/jquery.min.js", callback)
  else if ! /^1.[678]/.test(jQuery.fn.jquery)
    console?.error("AnchorTab is disabled because you are using an unsupported version of jQuery.")

