replace XMLHttpRequest with node-XMLHttpRequest