var headContent = "<!-- FORM: HEAD SECTION --><head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <meta name=\"referrer\" content=\"no-referrer-when-downgrade\">\n    <title><\/title>\n                                        <link href=\"https:\/\/iine.tfaforms.net\/dist\/form-builder\/5.0.0\/wforms-layout.css?v=1762207869\" rel=\"stylesheet\" type=\"text\/css\">\n                                                <link href=\"https:\/\/iine.tfaforms.net\/dist\/form-builder\/5.0.0\/wforms-jsonly.css?v=1762207869\" rel=\"stylesheet\" type=\"text\/css\">\n                                                <link href=\"https:\/\/iine.tfaforms.net\/uploads\/themes\/theme-34.css?v=1762207869\" rel=\"stylesheet\" type=\"text\/css\">\n                                                        <script src=\"https:\/\/iine.tfaforms.net\/js\/FA__DOMContentLoadedEventDispatcher.js?v=1762207869\" type=\"text\/javascript\"><\/script>\n                                                <script src=\"https:\/\/iine.tfaforms.net\/wForms\/3.11\/js\/wforms.js?v=1762207869\" type=\"text\/javascript\"><\/script>\n                                                <script src=\"https:\/\/iine.tfaforms.net\/wForms\/3.11\/js\/localization-en_US.js?v=1762207869\" type=\"text\/javascript\"><\/script>\n                                                <script src=\"https:\/\/iine.tfaforms.net\/wForms\/3.11\/js\/wforms_prefill.js?v=1762207869\" type=\"text\/javascript\"><\/script>\n                                                <script src=\"https:\/\/iine.tfaforms.net\/dist\/jquery\/jquery.0416573c648d279fd758.js?v=1762207869\" type=\"text\/javascript\"><\/script>\n                                                <script src=\"https:\/\/iine.tfaforms.net\/js\/typeahead\/v1.2.0\/typeahead.bundle.js?v=1762207869\" type=\"text\/javascript\"><\/script>\n                                                <script src=\"https:\/\/iine.tfaforms.net\/dist\/analytics\/data-collector.e86d94bd97a6d88cf5db.js?v=1762207869\" type=\"text\/javascript\"><\/script>\n                                                <script src=\"https:\/\/iine.tfaforms.net\/api_v2\/sst\/quick-publish?v=1762207869\" type=\"text\/javascript\"><\/script>\n                            \n    <\/head>";
var bodyContent = "<!-- FORM: BODY SECTION --><body class=\"default wFormWebPage\">\n\n    \n\n<div id=\"tfaContent\">\n\n            <div class=\"wFormContainer\" style=\"max-width: 100%; width: auto;\">\n    <div class=\"wFormHeader\"><\/div>\n\n    \n    <style type=\"text\/css\">\n                #tfa_1,\n                *[id^=\"tfa_1[\"] {\n                    width: 100% !important;\n                }\n                #tfa_1-D,\n                *[id^=\"tfa_1[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_2,\n                *[id^=\"tfa_2[\"] {\n                    width: 100% !important;\n                }\n                #tfa_2-D,\n                *[id^=\"tfa_2[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_3,\n                *[id^=\"tfa_3[\"] {\n                    width: 100% !important;\n                }\n                #tfa_3-D,\n                *[id^=\"tfa_3[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_9,\n                *[id^=\"tfa_9[\"] {\n                    width: 100% !important;\n                }\n                #tfa_9-D,\n                *[id^=\"tfa_9[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_4,\n                *[id^=\"tfa_4[\"] {\n                    width: 100% !important;\n                }\n                #tfa_4-D,\n                *[id^=\"tfa_4[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_8,\n                *[id^=\"tfa_8[\"] {\n                    width: 640px !important;\n                }\n                #tfa_8-D,\n                *[id^=\"tfa_8[\"][class~=\"field-container-D\"] {\n                    width: auto !important;\n                }\n            \n                #tfa_8,\n                *[id^=\"tfa_8[\"] {\n                    height: 65px !important\n                }\n                #tfa_8-D,\n                *[id^=\"tfa_8[\"][class~=\"field-container-D\"] {\n                    height: auto !important;\n                }\n                #tfa_8-L,\n                label[id^=\"tfa_8[\"],\n                *[id^=\"tfa_8[\"][id$=\"-L\"] {\n                    height: auto !important;\n                }\n            <\/style><div class=\"\"><div class=\"wForm\" id=\"4991872-WRPR\" data-language=\"en_US\" dir=\"ltr\">\n<div class=\"codesection\" id=\"code-4991872\"><\/div>\n<form method=\"post\" action=\"https:\/\/iine.tfaforms.net\/api_v2\/workflow\/processor\" class=\"hintsBelow labelsAbove\" id=\"4991872\">\n<div id=\"tfa_11\" class=\"section column group\"><table class=\"columnLayout\"><tr>\n<td><div class=\"oneField field-container-D    \" id=\"tfa_1-D\">\n<label id=\"tfa_1-L\" class=\"label preField reqMark\" for=\"tfa_1\"><b>First Name:<\/b><\/label><br><div class=\"inputWrapper\"><input aria-required=\"true\" type=\"text\" id=\"tfa_1\" name=\"tfa_1\" value=\"\" title=\"First Name:\" class=\"required\"><\/div>\n<\/div><\/td>\n<td><div class=\"oneField field-container-D    \" id=\"tfa_2-D\">\n<label id=\"tfa_2-L\" class=\"label preField reqMark\" for=\"tfa_2\"><b>Last Name<\/b><\/label><br><div class=\"inputWrapper\"><input aria-required=\"true\" type=\"text\" id=\"tfa_2\" name=\"tfa_2\" value=\"\" title=\"Last Name\" class=\"required\"><\/div>\n<\/div><\/td>\n<\/tr><\/table><\/div>\n<div id=\"tfa_12\" class=\"section column group\"><table class=\"columnLayout\"><tr>\n<td><div class=\"oneField field-container-D    \" id=\"tfa_3-D\">\n<label id=\"tfa_3-L\" class=\"label preField reqMark\" for=\"tfa_3\"><b>Email<\/b><\/label><br><div class=\"inputWrapper\"><input aria-required=\"true\" type=\"text\" id=\"tfa_3\" name=\"tfa_3\" value=\"\" title=\"Email\" class=\"required\"><\/div>\n<\/div><\/td>\n<td><div class=\"oneField field-container-D    \" id=\"tfa_9-D\">\n<label id=\"tfa_9-L\" class=\"label preField \" for=\"tfa_9\"><b>Phone Number<\/b><\/label><br><div class=\"inputWrapper\"><input type=\"text\" id=\"tfa_9\" name=\"tfa_9\" value=\"\" maxlength=\"11\" title=\"Phone Number\" class=\"\"><\/div>\n<\/div><\/td>\n<\/tr><\/table><\/div>\n<div class=\"oneField field-container-D    \" id=\"tfa_4-D\">\n<label id=\"tfa_4-L\" class=\"label preField \" for=\"tfa_4\"><b>Location:<\/b><\/label><br><div class=\"inputWrapper\"><select id=\"tfa_4\" name=\"tfa_4\" title=\"Location:\" class=\"\"><option value=\"\">Please select...<\/option>\n<option value=\"tfa_5\" id=\"tfa_5\" class=\"\">Boston<\/option>\n<option value=\"tfa_6\" id=\"tfa_6\" class=\"\">Lowell<\/option>\n<option value=\"tfa_7\" id=\"tfa_7\" class=\"\">Manchester<\/option><\/select><\/div>\n<\/div>\n<div class=\"oneField field-container-D    \" id=\"tfa_8-D\">\n<label id=\"tfa_8-L\" class=\"label preField reqMark\" for=\"tfa_8\"><b>Your Message:<\/b><\/label><br><div class=\"inputWrapper\"><textarea aria-required=\"true\" id=\"tfa_8\" name=\"tfa_8\" title=\"Your Message:\" class=\"validate-custom \/^((?!http).)*$\/ required\"><\/textarea><\/div>\n<script type=\"text\/javascript\">\n                        if(typeof wFORMS != 'undefined') {\n                            if(wFORMS.behaviors.validation) {\n                                wFORMS.behaviors.validation.rules['customtfa_8'] =  { selector: '*[id=\"tfa_8\"]', check: 'validateCustom'};\n                                wFORMS.behaviors.validation.messages['customtfa_8'] = \"This field does not accept links\";\n                            }\n                        }<\/script>\n<\/div>\n<div class=\"actions\" id=\"4991872-A\" data-contentid=\"submit_button\">\n<div id=\"google-captcha\" style=\"display: none\">\n<br><div class=\"captcha\">\n<div class=\"oneField\">\n<div class=\"g-recaptcha\" id=\"g-recaptcha-render-div\"><\/div>\n<div class=\"g-captcha-error\"><\/div>\n<br>\n<\/div>\n<div class=\"captchaHelp\">reCAPTCHA helps prevent automated form spam.<br>\n<\/div>\n<div id=\"disabled-explanation\" class=\"captchaHelp\" style=\"display: none\">The submit button will be disabled until you complete the CAPTCHA.<\/div>\n<\/div>\n<\/div>\n<input type=\"submit\" data-label=\"Submit\" class=\"primaryAction\" id=\"submit_button\" value=\"Submit\">\n<\/div>\n<div style=\"clear:both\"><\/div>\n<input type=\"hidden\" value=\"317-b25d01f143cdd3833a1b48f44949d4e3\" name=\"tfa_dbCounters\" id=\"tfa_dbCounters\" autocomplete=\"off\"><input type=\"hidden\" value=\"4991872\" name=\"tfa_dbFormId\" id=\"tfa_dbFormId\"><input type=\"hidden\" value=\"\" name=\"tfa_dbResponseId\" id=\"tfa_dbResponseId\"><input type=\"hidden\" value=\"7c7e5edb7243a6208a280a690430fb85\" name=\"tfa_dbControl\" id=\"tfa_dbControl\"><input type=\"hidden\" value=\"\" name=\"tfa_dbWorkflowSessionUuid\" id=\"tfa_dbWorkflowSessionUuid\"><input type=\"hidden\" value=\"0\" name=\"tfa_dbDataflowId\" id=\"tfa_dbDataflowId\"><input type=\"hidden\" value=\"1762207869\" name=\"tfa_dbTimeStarted\" id=\"tfa_dbTimeStarted\" autocomplete=\"off\"><input type=\"hidden\" value=\"2\" name=\"tfa_dbVersionId\" id=\"tfa_dbVersionId\"><input type=\"hidden\" value=\"false\" name=\"startWorkflow\" id=\"startWorkflow\"><input type=\"hidden\" value=\"\" name=\"tfa_switchedoff\" id=\"tfa_switchedoff\">\n<\/form>\n<\/div><\/div><div class=\"wFormFooter\"><p class=\"supportInfo\"><br><\/p><\/div>\n\n<\/div>\n\n\n            <script id=\"analytics-collector-script\" type=\"text\/javascript\" src=\"https:\/\/iine.tfaforms.net\/dist\/analytics\/data-collector.e86d94bd97a6d88cf5db.js\" data-customer-id=\"123929\" data-endpoint=\"https:\/\/analytics.formassembly.com\/v1\/traces\"><\/script>\n\n    \n<script type=\"text\/javascript\" data-for=\"FA__DOMContentLoadedEventDispatch\" src=\"https:\/\/iine.tfaforms.net\/js\/FA__DOMContentLoadedEventDispatcher.js\" defer><\/script>\n\n    <style>\n    .captcha {\n        padding-bottom: 1em !important;\n    }\n    .wForm .captcha .oneField {\n        margin: 0;\n        padding: 0;\n    }\n<\/style>\n<script type=\"text\/javascript\">\n    \/\/ initialize our variables\n    var captchaReady = 0;\n    var wFORMSReady = 0;\n    var isConditionalSubmitEnabled = false;\n    \/\/ when wForms is loaded call this\n    var wformsReadyCallback = function () {\n        \/\/ using this var to denote if wForms is loaded\n        wFORMSReady = 1;\n        isConditionalSubmitEnabled = document.getElementById('submit_button').hasAttribute('data-condition');\n        \/\/ call our recaptcha function which is dependent on both\n        \/\/ wForms and an async call to google\n        \/\/ note the meat of this function wont fire until both\n        \/\/ wFORMSReady = 1 and captchaReady = 1\n        onloadCallback();\n    }\n    var gCaptchaReadyCallback = function() {\n        \/\/ using this var to denote if captcha is loaded\n        captchaReady = 1;\n        isConditionalSubmitEnabled = document.getElementById('submit_button').hasAttribute('data-condition');\n        \/\/ call our recaptcha function which is dependent on both\n        \/\/ wForms and an async call to google\n        \/\/ note the meat of this function wont fire until both\n        \/\/ wFORMSReady = 1 and captchaReady = 1\n        onloadCallback();\n    };\n    \/\/ add event listener to fire when wForms is fully loaded\n    document.addEventListener(\"wFORMSLoaded\", wformsReadyCallback);\n    var enableSubmitButton = function() {\n        var submitButton = document.getElementById('submit_button');\n        var explanation = document.getElementById('disabled-explanation');\n        var isConditionalSubmitConditionMet = wFORMS.behaviors.condition.isConditionalSubmitConditionMet;\n        if (\n            submitButton != null &&\n            (isConditionalSubmitEnabled && isConditionalSubmitConditionMet) ||\n            !isConditionalSubmitEnabled\n        )\n        {\n            submitButton.removeAttribute('disabled');\n            if (explanation != null) {\n                explanation.style.display = 'none';\n            }\n        }\n    };\n    var disableSubmitButton = function() {\n        var submitButton = document.getElementById('submit_button');\n        var explanation = document.getElementById('disabled-explanation');\n        if (submitButton != null) {\n            submitButton.disabled = true;\n            if (explanation != null) {\n                explanation.style.display = 'block';\n            }\n        }\n    };\n    \/\/ call this on both captcha async complete and wforms fully\n    \/\/ initialized since we can't be sure which will complete first\n    \/\/ and we need both done for this to function just check that they are\n    \/\/ done to fire the functionality\n    var onloadCallback = function () {\n        \/\/ if our captcha is ready (async call completed)\n        \/\/ and wFORMS is completely loaded then we are ready to add\n        \/\/ the captcha to the page\n        if (captchaReady && wFORMSReady) {\n            grecaptcha.enterprise.render('g-recaptcha-render-div', {\n                'sitekey': '6LfMg_EaAAAAAMhDNLMlgqDChzmtYHlx1yU2y7GI',\n                'theme': 'light',\n                'size': 'normal',\n                'callback': 'enableSubmitButton',\n                'expired-callback': 'disableSubmitButton'\n            })\n            if (!wFORMS.instances['paging']) {\n                document.getElementById(\"g-recaptcha-render-div\").parentNode.parentNode.parentNode.style.display = \"block\";\n            }\n            document.getElementById(\"g-recaptcha-render-div\").getAttributeNode('id').value = 'tfa_captcha_text';\n            var captchaError = '';\n            if (captchaError == '1') {\n                var errMsgText = 'The CAPTCHA was not completed successfully.';\n                var errMsgDiv = document.createElement('div');\n                errMsgDiv.id = \"tfa_captcha_text-E\";\n                errMsgDiv.className = \"err errMsg\";\n                errMsgDiv.innerText = errMsgText;\n                var loc = document.querySelector('.g-captcha-error');\n                loc.insertBefore(errMsgDiv, loc.childNodes[0]);\n                \/* See wFORMS.behaviors.paging.applyTo for origin of this code *\/\n                if (wFORMS.instances['paging']) {\n                    var b = wFORMS.instances['paging'][0];\n                    var pp = base2.DOM.Element.querySelector(document, wFORMS.behaviors.paging.CAPTCHA_ERROR);\n                    if (pp) {\n                        var lastPage = 1;\n                        for (var i = 1; i < 100; i++) {\n                            if (b.behavior.isLastPageIndex(i)) {\n                                lastPage = i;\n                                break;\n                            }\n                        }\n                        b.jumpTo(lastPage);\n                    }\n                }\n            }\n        }\n    }\n<\/script>\n<script src=\"https:\/\/www.google.com\/recaptcha\/enterprise.js?onload=gCaptchaReadyCallback&amp;render=explicit&amp;hl=en_US\" async defer><\/script>\n<script type=\"text\/javascript\">\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        var warning = document.getElementById(\"javascript-warning\");\n        if (warning != null) {\n            warning.parentNode.removeChild(warning);\n        }\n        var explanation = document.getElementById('disabled-explanation');\n        var submitButton = document.getElementById('submit_button');\n        if (submitButton != null) {\n            submitButton.disabled = true;\n            if (explanation != null) {\n                explanation.style.display = 'block';\n            }\n        }\n    });\n<\/script>\n\n<script type=\"text\/javascript\">\n    document.addEventListener(\"FA__DOMContentLoaded\", function(){\n        const FORM_TIME_START = Math.floor((new Date).getTime()\/1000);\n        let formElement = document.getElementById(\"tfa_0\");\n        if (null === formElement) {\n            formElement = document.getElementById(\"0\");\n        }\n        let appendJsTimerElement = function(){\n            let formTimeDiff = Math.floor((new Date).getTime()\/1000) - FORM_TIME_START;\n            let cumulatedTimeElement = document.getElementById(\"tfa_dbCumulatedTime\");\n            if (null !== cumulatedTimeElement) {\n                let cumulatedTime = parseInt(cumulatedTimeElement.value);\n                if (null !== cumulatedTime && cumulatedTime > 0) {\n                    formTimeDiff += cumulatedTime;\n                }\n            }\n            let jsTimeInput = document.createElement(\"input\");\n            jsTimeInput.setAttribute(\"type\", \"hidden\");\n            jsTimeInput.setAttribute(\"value\", formTimeDiff.toString());\n            jsTimeInput.setAttribute(\"name\", \"tfa_dbElapsedJsTime\");\n            jsTimeInput.setAttribute(\"id\", \"tfa_dbElapsedJsTime\");\n            jsTimeInput.setAttribute(\"autocomplete\", \"off\");\n            if (null !== formElement) {\n                formElement.appendChild(jsTimeInput);\n            }\n        };\n        if (null !== formElement) {\n            if(formElement.addEventListener){\n                formElement.addEventListener('submit', appendJsTimerElement, false);\n            } else if(formElement.attachEvent){\n                formElement.attachEvent('onsubmit', appendJsTimerElement);\n            }\n        }\n    });\n<\/script>\n\n<script type=\"text\/javascript\">\n    if(wFORMS.behaviors.prefill) wFORMS.behaviors.prefill.skip = true;\n<\/script>\n\n\n\n    <\/div>\n\n\n    \n\n\n\n<\/body>";
var resumeUrl = null;
var baseUrl = "https:\/\/iine.tfaforms.net";

/**
 * Main entry point, called when the DOM is loaded.
 */
function loadFormAssemblyFormHeadAndBodyContents() {
    var targetElement = getTargetElement();
    var formBodyWrapper = createFormBodyWrapper();

    injectHeadContent();
    injectBodyContent(formBodyWrapper, targetElement);
    addResumeLink();

    document.addEventListener('FA__DOMContentLoaded', function () {
        executeBodyScripts(formBodyWrapper);
        
        // Set up FA$ for autosuggest behavior (jQuery in noConflict mode)
        if (typeof $ !== 'undefined' && $.noConflict) {
            window.FA$ = $.noConflict(true);
        }
        
        // Apply prefill behavior to enable URL parameter prefilling
        var forms = document.querySelectorAll('form');
        forms.forEach(function(form) {
            if (wFORMS && wFORMS.behaviors && wFORMS.behaviors.prefill) {
                wFORMS.behaviors.prefill.skip = false;
                wFORMS.behaviors.prefill.applyTo(form);
            }
        });
    });
}
window.addEventListener('DOMContentLoaded', loadFormAssemblyFormHeadAndBodyContents);

/**
 * Finds the target DOM element where the form should be injected.
 * @returns {HTMLElement|null} The target element or null if not found.
 */
function getTargetElement() {
    var quickPublishScript = document.querySelector('script[data-qp-target-id]');
    if (quickPublishScript) {
        var elementID = quickPublishScript.getAttribute('data-qp-target-id');
        return document.getElementById(elementID);
    }
    return null;
}

/**
 * Creates the main wrapper div for the form's body content.
 * @returns {HTMLDivElement}
 */
function createFormBodyWrapper() {
    var bodyWrapperDiv = document.createElement('div');
    bodyWrapperDiv.id = "FA__QP__BODYWRAPPERDIV";
    return bodyWrapperDiv;
}

/**
 * Injects the form's header content (styles, scripts) into the main document.
 */
function injectHeadContent() {
    var head = document.createElement('head');
    head.innerHTML = headContent;

    var headElements = Array.from(head.children);
    var scriptElements = headElements.filter(function(el) { return el.nodeName === 'SCRIPT'; });
    var otherElements = headElements.filter(function(el) { return el.nodeName !== 'SCRIPT'; });

    otherElements.forEach(function(el) { document.head.appendChild(el); });
    loadHeadScriptsSequentially(scriptElements);
}

/**
 * Loads header script tags sequentially to maintain order.
 * @param {HTMLScriptElement[]} scriptElements - An array of script elements to load.
 */
function loadHeadScriptsSequentially(scriptElements) {
    var script = scriptElements.shift();
    if (!script) {
        document.dispatchEvent(new Event('FA__DOMContentLoaded'));
        return;
    }

    var newScript = document.createElement('script');
    Array.from(script.attributes).forEach(function(attr) { newScript.setAttribute(attr.name, attr.value); });
    newScript.innerHTML = script.innerHTML;

    if (script.src) {
        newScript.onload = function() { loadHeadScriptsSequentially(scriptElements); };
        document.head.appendChild(newScript);
    } else {
        document.head.appendChild(newScript);
        loadHeadScriptsSequentially(scriptElements);
    }
}

/**
 * Injects the form's body content into the target element.
 * @param {HTMLDivElement} formBodyWrapper - The div that will contain the form.
 * @param {HTMLElement|null} targetElement - The element to inject the form into.
 */
function injectBodyContent(formBodyWrapper, targetElement) {
    var body = document.createElement('body');
    body.innerHTML = bodyContent;

    Array.from(body.children).forEach(function(el) { formBodyWrapper.appendChild(el); });

    if (targetElement) {
        targetElement.appendChild(formBodyWrapper);
    } else {
        document.body.appendChild(formBodyWrapper);
    }
}

/**
 * If a resume URL is provided, it finds the "Save and Resume" containers
 * and injects the resume link.
 */
function addResumeLink() {
    if (!resumeUrl) return;

    var oneFieldContainers = document.querySelectorAll('.wForm .saveAndResume > .oneField');
    oneFieldContainers.forEach(function (container) {
        var separator = document.createTextNode(' | ');

        var resumeLink = document.createElement('a');
        resumeLink.href = baseUrl + resumeUrl;
        resumeLink.innerHTML = 'Resume a previously saved form';
        
        resumeLink.addEventListener('click', function(event) {
            if (!confirm('Are you sure you want to resume a previous response? Any information you just entered on this page will be discarded.')) {
                event.preventDefault();
            }
        });

        container.appendChild(separator);
        container.appendChild(resumeLink);
    });
}

/**
 * Finds and re-executes script tags from the form's body.
 * @param {HTMLDivElement} formBodyWrapper - The wrapper containing the form.
 */
function executeBodyScripts(formBodyWrapper) {
    var scriptTags = formBodyWrapper.querySelectorAll('script');
    scriptTags.forEach(function (scriptTag) {
        // Skip jQuery, Typeahead, Kalendae, and Calendar scripts that are already loaded in the head
        if (scriptTag.src && (
            scriptTag.src.includes('jquery.js') || 
            scriptTag.src.includes('typeahead.bundle.js') ||
            scriptTag.src.includes('/js/kalendae/') ||
            scriptTag.src.includes('wforms_calendar.js')
        )) {
            return;
        }
        
        // Skip noConflict scripts that are meant for jQuery/Typeahead
        if (scriptTag.innerHTML && scriptTag.innerHTML.includes('noConflict')) {
            return;
        }
        
        var script = document.createElement('script');
        Array.from(scriptTag.attributes).forEach(function(attr) { script.setAttribute(attr.name, attr.value); });
        script.innerHTML = scriptTag.innerHTML;
        scriptTag.parentNode.replaceChild(script, scriptTag);
    });
}
