old_contents: window.onload = initialize;
  
  var DATAFILE = "research.json";
  var DONE_READYSTATE = 4;
  var DONE_STATUS = 200;
  var OFFICIAL_URL = "http://www.ecst.csuchico.edu/~kbuffardi/";
  var OFFICIAL_HOST = "www.ecst.csuchico.edu"
  
  var references = {};
  
  function initialize()
  {
    validateHost();
    loadExternalData();
  }
  
  function validateHost()
  {
    if( window.location.hostname != OFFICIAL_HOST )
    {
      window.location.href = OFFICIAL_URL;
    }
  }
  
  function loadExternalData()
  {
    var json = new XMLHttpRequest();
    json.overrideMimeType("application/json");
    //event listener: when json file load is "done"
    json.onreadystatechange = function() {
      if (this.readyState == DONE_READYSTATE
          && this.status == DONE_STATUS) 
      {
        references=JSON.parse(this.responseText);
        console.log(references);
      }
    }
    json.open("GET", DATAFILE);
    json.send();
  }
new_contents: window.onload = initialize;
  
  var DATAFILE = "research.json";
  var DONE_READYSTATE = 4;
  var DONE_STATUS = 200;
  var OFFICIAL_URL = "http://www.ecst.csuchico.edu/~kbuffardi/";
  var OFFICIAL_HOST = "www.ecst.csuchico.edu"
  
  var references = {};
  
  function initialize()
  {
    validateHost();
    //loadExternalData();
  }
  
  function validateHost()
  {
    if( window.location.hostname != OFFICIAL_HOST )
    {
      window.location.href = OFFICIAL_URL;
    }
  }
  
  function loadExternalData()
  {
    var json = new XMLHttpRequest();
    json.overrideMimeType("application/json");
    //event listener: when json file load is "done"
    json.onreadystatechange = function() {
      if (this.readyState == DONE_READYSTATE
          && this.status == DONE_STATUS) 
      {
        references=JSON.parse(this.responseText);
        console.log(references);
      }
    }
    json.open("GET", DATAFILE);
    json.send();
  }
subject: Enable URL redirect, disable external data