add InterpretedFunction to the java scriptEngine using eval

RhinoScriptEngine This is the typical engine we use for js evaluation. http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/com/sun/script/javascript/RhinoScriptEngine.java without ScriptContext When you get back the reference to a function, you need to ask the engine to execute that function for you. And although not pretty, asking js to eval() it for you with a specific set of bindings will actually do the…