JavaScript coding style refactor

Unified the JavaScript coding style.