Update app.js

Add comments.