I had a similar problem with the same error, but my first line of code was alert(0); I inserted to make sure the script is loaded! Interestingly, the script was loaded in accordance with the IE9 developer tools, but the first line was never executed, and the error indicated alert(0); as a re-declaration. I even inserted lines and spaces in front of them, and changed the line and character number accordingly. However, this (obviously) was not what was remodeled, because it is not even a declaration, not to mention a re-declaration!
I removed the pieces from the end of the script until I ran alert(0); (indicating that the script was loaded and successfully processed), and I found that the violation line is:
var screen;
It turns out that IE9 already has window.screen that this ad came across, and renaming my screen to eScreen fixed the problem.
So my answer is: do not trust IE9's direction about where the re-announcement happens!
(It is also worth noting that the script works fine in its original form on IE7, IE8, and IE10, not IE9.)
Richard Wiseman
source share