added dom.js and xhr.js