more js syntax fix