fix bad js style