   FactlinkJailRoot.initializeFactlinkButton()
 
   console.info "FactlinkJailRoot:", "startHighlighting"
-  fetchFacts FactlinkJailRoot.siteUrl()
+  facts_promise.done(highlightFacts)
 
 # Don't check for highlighting here, as this is a
 # special hacky-patchy method for in the blog
 FactlinkJailRoot.highlightAdditionalFactlinks = (siteUrl) ->
   console.info "FactlinkJailRoot:", "highlightAdditionalFactlinks"
-  fetchFacts siteUrl
+  fetchFacts(siteUrl).done(highlightFacts)

# Returns deferred object
fetchFacts = (siteUrl) ->
  FactlinkJailRoot.perf.add_timing_event 'fetchFacts:start'

  $.ajax
    # The URL to the FactlinkJailRoot backend
    url: FactlinkConfig.api + "/site?url=" + encodeURIComponent(siteUrl)
    dataType: "jsonp"
    crossDomain: true
    type: "GET"
    jsonp: "callback"
    success: highlightFacts

highlighting = false
FactlinkJailRoot.startHighlighting = ->

      console.error "Could not highlight, empty factlink or complete overlap? Text: <#{text}>"

highlightFacts = (facts_data) ->


  # If there are multiple matches on the page, loop through them all
  for fact_data in facts_data
