Extract output modules from main.js
Move production js code to src/