Update app.js

Simplifying...