CB-6210 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 `;`