fixed js style errors