Update createXMLHttpObject (example taken from stacktrace.js)