config function should return the XMLHTTPRequest