fixed some js coding standards