fixed js syntax typo