documenting app.js

Updating the documentation for app.js