Moving the module defenition to main.js