added user agent for XMLHTTPRequest