JS coding standards fixes