fixed app.js and index.js