html/template does not properly treat JavaScript code as
JavaScript when using a <script> tag with "module" set as
the type attribute.
See also:
https://www.w3.org/TR/html5/semantics-scripting.html#element-attrdef-script-type and
https://html.spec.whatwg.org/multipage/scripting.html#the-script-element:module-script-2
Original change from tomut at https://golang.org/cl/135417