moved JS from view to main.app.js
actual fix