Fix bind to xhr callback

We can't use the runloop bind as it does not execute the function immediately