code: function run(transformFn, script) {
    const scriptEl = document.createElement('script');
    scriptEl.text = transformCode(transformFn, script);
    headEl.appendChild(scriptEl);
  }
docs: Appends a script element at the end of the <head> with the content of code,
  after transforming it.