fix for XHR object not being passed through to callback correctly