Refactor to xmlhttprequest.js
Fix typo