Fix js error for IE.