Stop js error on comment submit