Create an event sheet function with a string return value. Inside the event sheet function, add a script action with:
runtime.setReturnValue(testing());
Now you can call the event sheet function as an expression, and it returns a value from JS.
The general approach is to "wrap" JS functions with event functions.