app.js modification
Simplified example