XMLHttpRequest ready state map for Node.js and the browser.