Repair app.js to link to index