3rd party java script

Since this code interacts with the HTML of the site, it will not work.
You can try putting it inside an HTML element, I know it worked with other services (but again, it depends on what the script is trying to do).