enforcing javascript code style