JS code style fixes