Replaced request with XMLHTTPRequest