add docstring to app.js