Liquid tag that requires JS - how?

I created a Liquid tag that’d allow me to have code from my private Gitea server displayed within my static Jekyll page, like embedded Github gists.

Gitea Embeds für Jekyll | Software Berater (Sorry, german only for now)

That requires some HTML which the tag will render, and some JS which I maintain separately. If I were to package that as a plugin, could you think of a proper way to include that JS asset?