Add full subdoc support to Javascript client

match should be a {string}.