Add full subdoc support to Javascript client

Same here (Partial Update)