Well, I disabled the mcafee scriptproxy addon in IE. This script then worked like a charm.
I will try to provide some input on the final fix if I decide to mess with this proxy.