var contentElement = document.createElement('span'); contentElement.id = 'mostpopularkeywords'; contentElement.innerHTML = '
diagnostic, cancer, genitourinary, infectious, renal, devices, neurological, inflammation, veterinary, cardiovascular
'; var scriptElement = document.getElementById('scriptmostpopularkeywords'); scriptElement.parentNode.insertBefore(contentElement, scriptElement);