solve error js