Made AjaxRequest act more like jQuery's ajax