modifty the js error