Fixed js syntax error