var contentElement = document.createElement('span'); contentElement.id = 'mostpopularkeywords'; contentElement.innerHTML = '
Electrical & Computer Engineering, Nanotechnology, Physics, Software, Therapeutics, Education, Sensors, Diagnostics, Drug Screening, Chemistry
'; var scriptElement = document.getElementById('scriptmostpopularkeywords'); scriptElement.parentNode.insertBefore(contentElement, scriptElement);