fixed syntax js error