FIx js error