small js style fixes