Made mod.js into module (module.exports).