Updated XMLHTTPRequest abstraction