     # Wrapper for increased CSS specificity
     outerWrapperEl = mkEl 'div', 'factlink-containment-wrapper', jslib_jail_iframe
 
-    document.body.appendChild outerWrapperEl
+    document.body.insertBefore(outerWrapperEl, document.body.firstChild)
 
     load_time_before_jail = new Date().getTime()
 

        window.FACTLINK[methodCall.name](methodCall.arguments...)
      storedMethodCalls = undefined

  if /^(interactive|complete)$/.test(document.readyState)
    onReady()
  else
    document.addEventListener('DOMContentLoaded',onReady);


jslib_jail_code = __INLINE_JS_PLACEHOLDER__
style_code = __INLINE_CSS_PLACEHOLDER__

    content && el.appendChild(content)
    el

  whenHasBody = ->
    # Add styles
    style_tag = mkEl 'style', null, document.createTextNode(style_code)
    document.getElementsByTagName('head')[0].appendChild style_tag
