Chainable XmlHttpRequest Boilerplate