JavaScript code style