some js style cleanup