Loading a javascript file in the bottom of a html page

I want to load a JavaScript file in the bottom of page. Is there an elegant way to do this, as in
\html_requires(js(‘myfile.js’)) ?

As is, that is not provided. Of course you can include scripts near the end using html(script(...)) just like any other element.

This would require a mailbox just before the </body> that is used by html_requires//1 instead of the current head slot.