Custom macro : load javascript library

hi,
Is it possible to load javascript within a custom Confluence macro, with the VTL macro language?
The javascript would be a thrid party library (either self hosted or accessible via a CDN).
What is the classical approach if we want to do that? E.g. load (java)script that is normally loaded in the HEAD tag of a HTML page.
Thanks