Make Grunt use the module convention to generate javascripts

/cc @phamann just checking this gets built and deployed through the whole stack before we go any further.