Simple class wrapper around XmlHttpRequest witten in es6 with transpiling to es5.
var request = new HttpRequest([url], [eagerness], [useCredentials], [username], [password]); request.then(function(response) { console.log(response); }).catch(function(response) { console.error(response); });;