Node.js-style ajax requests for the browser