MOSYNC-EXT: JS argument marshalling