- minor changes to dom.js (clean up mostly)
- moved event callbacks to index.html