Got rid of main.js and moved its content to corresponding views