Update app.js

Adding javascript