fixed xhr.js issues