make src/dominate.js use module.exports