docs: function request (type, url, data) {
  		return new Promise(function (fulfill, reject) {
  			// Set ajax to correct XHR type. Source: https://gist.github.com/jed/993585
  			var Xhr = window.XMLHttpRequest||ActiveXObject,
  					req = new Xhr('MSXML2.XMLHTTP.3.0');
  
  			req.open(type, url, true);
  			req.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
  			req.onreadystatechange = function (e) {
  				if (this.readyState === 4) {
  					if (this.status === 200) {
  						var res = prepareResponse(req.responseText);
  						fulfill(res, req);
  					}
  					else {
  						reject(new Error('Request responded with status ' + req.statusText));
  					}
  				}
  			};
  			req.send(data);
  		});
  	}