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