fixed app.js and index.js/ added test file