Use ScriptEngine instead of rhino