clearing js error