finding js error