updating app.js with production code