[FIXED JENKINS-16561]

eval("") is no-op in IE but window.execScript("") isn't.
So bring the uniformity outside