resovled js error