fixed js error on IE8