changed xmlhttprequest to xmlhttprequest-with-globalagent npm package