delete appIndex variable from app.js