JavaScript style fixes