Iwillig/xhr promise

@bcamper 

Oh right.. I remember you mentioning that. Will fix.