I was testing our site, in IE8 and got the dreaded Unexpected call to method or property access.
error.
After lots of debugging (IE8\'s devtools suck),
Your javascript only method needs to add the script element to the document.
IE<9 does not recognize innerHTML or childNodes on script tags, but all browsers support the text property.
var scriptTag = document.createElement('script');
scriptTag.text= JSData;
document.body.appendChild(scriptTag);