updated references that were out of date. Shortened XMLHTTPRequest to just XHR.