extend ScriptingCore with ability to execute anonymous JS functions