Moving main.js into application.js