modefied app.js