Simple fix to make return XHR