Added View code -app.js