Added app.js

added app.js and changed index.html