cleanup xhr.js