Modified app.js and controller/Main.js