NodeJS additions to provide XMLHttpRequest and make reading binary data work