Fix js syntax error