Obfuscated the code which crashed IE so IE doesn't crash and it still works in every other browser.