Update file dom.js