Fixed syntax errors in app.js and tested the working of $window