udated app.js