Javascript style fixes