src/aja.js
function(url){
                var self = this;

                ajaGo._xhr.call(this, url, function processRes(res){
                    if(res){
                        try {
                            res = JSON.parse(res);
                        } catch(e){
                            self.trigger('error', e);
                            return null;
                        }
                    }
                    return res;
                });
            }
function(url){
                var self = this;

                ajaGo._xhr.call(this, url, function processRes(res){
                    if(res){
                        try {
                            res = JSON.parse(res);
                        } catch(e){
                            self.trigger('error', e);
                            return null;
                        }
                    }
                    return res;
                });
            }
function ( url ) { var self = this ; ajaGo . _xhr . call ( this , url , function processRes ( res ) { if ( res ) { try { res = JSON . parse ( res ) ; } catch ( e ) { self . trigger ( 'error' , e ) ; return null ; } } return res ; } ) ; }
XHR call to url to retrieve JSON
@param {String} url - the url
XHR call to url to retrieve JSON