const s = document.createElement('script'); s.type code example
Example: javascript create script tag
var script = document.createElement("script");
script.src = "https://url.com/";
document.head.appendChild(script);
var script = document.createElement("script");
script.src = "https://url.com/";
document.head.appendChild(script);