anchor.diff:              //easyXDM does not support passing functions wrapped in objects (such as options in this case)
               // so therefore we need this workaround
               ajax: function(path, options, successFn, errorFn) {
  -
                 ajax(path, $.extend({
                   success: successFn,
                   error: errorFn
  
positive.code:         }
        }, options));
      }
  
      function getTopIntermediatePage() {
        var proxiedPage = parent;
        var proxyContainer = proxiedPage.parent;
        var showFactlinkContainer = proxyContainer.parent;
        return showFactlinkContainer.parent; //(same source as current page)
      }
  
  
  
      function submitEvidenceToShowFrame(type, evidence_id) {
        var fact_id = showFrame.contentWindow.fact_id;
        var script = document.createElement("script");
  
        script.src = "<%= add_evidence_path %>?type=" + type + "&fact_id=" + fact_id + "&evidence_id=" + evidence_id;
        script.type = "text/javascript";
  
        showFrame.contentWindow.document.getElementsByTagName('head')[0].appendChild(script);
      }
  
      function submitNewEvidenceToShowFrame(type, fact, passage, url, title) {
        var fact_id = showFrame.contentWindow.fact_id;
        var script = document.createElement("script");
  
        // Todo: should be done using POST
        script.src = "<%= create_fact_as_evidence_path %>?type=" + type + "&fact=" + fact + "&url=" + escape(url) + "&passage=" + passage + "&fact_id=" + fact_id + "&title=" + title;
        script.type = "text/javascript";
  
        showFrame.contentWindow.document.getElementsByTagName('head')[0].appendChild(script);
      }
  
      function openNewProxyWindow(search_params) {
        var doc = showFrame.contentWindow.document;
        window.proxyFrame = document.createElement("iframe");
  
        window.proxyFrame.className = "proxyFrame";
        window.proxyFrame.src = "<%= FactlinkUI::Application.config.proxy_url %>/search?query=" + search_params + "&factlinkModus=addToFact";
  
        doc.getElementsByTagName("body")[0].appendChild(window.proxyFrame);
      }
  
      function hideProxyWindow() {
        window.proxyFrame.style.display = "none";
        window.proxyFrame.src = "<%= FactlinkUI::Application.config.proxy_url %>/?url=http://www.google.com&factlinkModus=addToFact";
      }
  
    </script>
  </body>
  </html>
  
negative.code:             stopHighlightingFactlink: {}
            },
            local: {
              showFactlink: function(id, successFn) {
                showFrame.onload = function() {
                  showFrame.onload = undefined;
  