[client][js] support for optimistic concurrency on delete