js style cleanups