Refactoring due to feedback - in particular the process actor has been overhauled, and the js engine now returns the js execution result including output and error in one go.