code: function(path, callback) {
        //support IE8's separate cross-domain object
        var xhr = inLegacyIE ? new XDomainRequest() : new XMLHttpRequest();
        xhr.open("GET", this.endpoint + path);
        var self = this;
        xhr.onload = function() {
          try {
            var json = JSON.parse(xhr.responseText);
          } catch (e) {
            console.error(e);
          }
          callback.call(self, json);
        };
        xhr.send();
      }
docs: /*
  Use Cross-Origin XMLHttpRequest to get the data in browsers that support it.