I read and I tried many methods from posts and from Google on how to get the AJAX .responseText to allow JS to run and none of the methods either don\'t work or gav
.responseText
After you have insertAdjacentHTML-ed, how about eval-ing the scripts manually.
document.querySelectorAll('#ajax script').forEach(script => { script.remove() eval(script.innerHTML) })