Ole
I didn’t use custom js for this myself.
I’m not sure it can be done that way because it needs to load a js file from the SilkTide web site.
So I created instead a custom header file (myheader.php, as described in the FAQ pages on this site) and included the details silktide provide in that, within the head tags.