Adding app.js and updating the content of index.html