const baseUrl = "http://api.thisismyjam.com";
const version = "1";

var uxhr = require("uxhr");
var apiKey = null;

function Base() {}

Base.prototype.setApiKey = string => apiKey = string;

Base.prototype.constructUrl = function(string) {
  return [baseUrl, version, string].join("/");
};

Base.prototype.makeRequest = function(url) {
  return new Promise(function(resolve, reject) {
    uxhr(url, { key: apiKey }, {
      success: function(data) {
        try {
          data = JSON.parse(data);
          resolve(data);
        } catch(err) {
          reject(err);
        }
      },
      error: function(err) {
        reject(err);
      }
    });
  });
};

module.exports = Base;

@@ -278,16 +278,26 @@
 oin(%22/%22)
+ + %22.json%22
 ;%0A%7D;%0A%0ABa

Add missing .json