Corrected app.js issue