Added interface to pass JS functions to Lua