Improve mock app's compliance with JS style guide