Return value from xhr/request

Currently no way to grab the xhr before the request completes. Added return.