added app.js and a working index