How to fix Script Error when opening the form in IE8?