Strange fix for IE8 'script too slow' error