JavaScript code style polish