js error fix