Fix IE only JS error