MOSYNC-2737: Support for return values, fixed (JS)