see https://github.com/driverdan/node-XMLHttpRequest#usage