documentation for app.js

Updating the documentation.