CB-6151 Adjust code style to match jake rules

* omit space between function name and `()`
* include a space between `function` and `()` for nameless functions
* include space after `;`