Include embedded `<head>` scripts when applying templates.
Guise Mummy, when applying templates, already merges in <head> links such as external scripts, but doesn't currently import embedded inline script content in the source file, e.g.:
Improve template application to include inline scripts.
The HTML 5.2 specification describes the <script> element.