Passwordless email template: Parse Link

Hello,

I tried to include a script to parse the {{ link }} in the passwordless email template.
However, the script never runs, it should run when page loads.
How can I run javascript on passwordless email template?

Regards, Flavio