anchor.diff:        }, options));
       }
       
  -    $(document).ajaxError(function(e, xhr, status, err) {
  +    function globalErrorFunction(xhr, status, err) {
         if (xhr.status === 401) {
           openLoginWindow();
         }
  -    });
  +    }
       
       function openLoginWindow() {
         alert("Please login to Factlink.");
  
positive.code: 	<%= csrf_meta_tag %>
  </head>
  <body>
  	<%= form_for(facts_path, :url => facts_path, :as => :post, :html => { :target => "frame", :id => "form"}) do |f| %>
    	<input type="hidden" name="evidence_id" id="evidence_id" value="">
    	<input type="text" name="url" id="url" value="">
  
negative.code:             //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) {
                if (errorFn !== undefined) {
                  errorFn = globalErrorFunction;
                }
                ajax(path, $.extend({
                  success: function eminem(){
                    console.info('SUCCESS : ' + path );
                    successFn.apply(this,arguments);
                  },
                  error: function vanillaIce() {
                    console.info('ERROR : ' + path );
                    errorFn.apply(this,arguments);
                  }
                }, options));
              }
  