Update app.js

added comments for clarification.