Js error fixed