functions that call ajax should return the XMLHTTPRequest