Modify mock app's app.js to be usable with other apps
Improve mock app's app.js's compliance with JS style guide