evaluate package:jsaddle

If you just want to run some JavaScript that you have as a string this is you can use eval or evaluateScript.