Add undocumented convention present in the JS codebases

Extend the JS code style docs with private function convention.