I believe this should do it:
Code:
var myDiv = document.createElement('div');
myDiv.setAttribute('id', 'div-gpt-ad-1333883367415-15');
myDiv.setAttribute('style', 'width:300px; height:250px;');
var myScript = document.createElement('script');
myScript.setAttribute('type', 'text/javascript');
var myCode = "googletag.cmd.push(function() { googletag.display('div-gpt-ad-1333883367415-15'); });";
myScript.innerHTML = myCode;
myDiv.appendChild(myScript);
document.getElementById('???').appendChild(myDiv);
where '???' is the id of the element where you want to insert this content.
Bookmarks