app.js edit for index