// Defer script execution until the DOM is fully loaded window.onload = function() { // Initialize HubSpot form if (window.hbspt && hbspt.forms) { hbspt.forms.create({ region: "na1", portalId: "4606795", formId: "72b3959e-d376-4721-82a3-72f9d4c68185", target: '#myForm' }); } // Replace element logic var emptyElement = document.getElementById("col-box-p-bbpfgchnqta"); var testSection = document.querySelector(".test-section"); if (emptyElement && testSection) { emptyElement.replaceWith(testSection); } };