const im = new Image(320,50); im.src='https://98dbe13d-a717-4f13-aaf6-0765814217fd.adfrauddetector.com/creative?w=320&h=50&c=cocacola'; if( document.getElementById("creative") ) document.getElementById("creative").appendChild(im); else document.body.appendChild(im);