code: public JavaScriptActionBuilder javascript(String script) {
          JavaScriptAction action = new JavaScriptAction();
          action.setScript(script);
          action(action);
          return new JavaScriptActionBuilder(action);
      }
docs: Execute JavaScript.