pass XMLHttpRequest object as an argument to the promise callback