Add more documentation to dom.js