Avatar

Level 2

I don't believe that the Execute Script service will execute JavaScript.  I'm fairly certain it is actually Java BeanShell.

If you were really keen on executing JS, you could probably develop a custom component that executed JS, but you may be better off porting your code to regular Java.