fixing js error i introduced