Fixed app.js code in order to make it work