Creating the Engine:
ScriptEngineManager manager = new ScriptEngineManager();
engine.eval(new FileReader(new File(“file.js”)));
Invocable inv = (Invocable) engine;
call the sum method with arguments a=2 and b=3.