Hanover, MN
"; var tempDiv = document.createElement('div'); tempDiv.innerHTML = headerCode; // Process and inject each element Array.from(tempDiv.children).forEach(function(el) { if (el.tagName === 'SCRIPT') { var script = document.createElement('script'); Array.from(el.attributes).forEach(function(attr) { script.setAttribute(attr.name, attr.value); }); script.textContent = el.textContent; document.head.appendChild(script); } else { document.head.appendChild(el.cloneNode(true)); } }); })();