fixed typos in app.js and added json to index