documented client-api/commands/patches/how-to-use-javascript-to-patch-your-documents