add app.js and edit index.html