Update dom.js

fixed minor issues