set up index, remove old code from duplicated app.js file