app.js modfied