Update app.js

Missing some braces/parentheses