

var Ajax = function(){
   // this is just a helper class to ease ajax calls
   var _this = this;
   this.xmlhttp = new XMLHttpRequest();

   this.get = function(url, callback){

     _this.xmlhttp.onreadystatechange = function(){

       if(_this.xmlhttp.readyState === 4){

         callback(_this.xmlhttp.responseText, _this.xmlhttp.status);

       }

     };
     _this.xmlhttp.open('GET', url, true);

     _this.xmlhttp.send();

   }
 };
