Fixed wrong window.XMLHttpRequest-handling