fix  js syntax