Commit the scripting function and the function call from JS