Fixing bug in Android caused by XHR syntax and old bug in rsvp.Promise