Adds thorough comments to public app.js.