code: function insertScript({isModule, src, scriptContent}) {
          const script = document.createElement('script');
  
          if (isModule) {
              script.type = 'module';
          } else {
              script.setAttribute('nomodule', '');
          }
  
          if (src) {
              script.src = src;
          }
  
          if (scriptContent) {
              script.innerHTML = scriptContent;
          }
  
          document.head.appendChild(script); // start loading the script;
      }
docs: METHODS