var id = 'ferienhausmarktcom-rating-widget22176'; var widgetHtml = '
' document.addEventListener("DOMContentLoaded", function(event) { var container = document.getElementById(id); container.innerHTML = widgetHtml; container.removeAttribute('href'); });