handle savestate json return info in workflow.js instead of in the applet