var contentElement = document.createElement('span'); contentElement.id = 'mostpopularkeywords'; contentElement.innerHTML = '
Devices, Cancer, Imaging, Medical, Electronics, Computer, Therapeutics, Antibody, Diagnostics, Software
'; var scriptElement = document.getElementById('scriptmostpopularkeywords'); scriptElement.parentNode.insertBefore(contentElement, scriptElement);