Fixed js error in IE