Compatible with NodeJS

Added compatibility with NodeJS, depends of xmlhttprequest.