Add full subdoc support to Javascript client

"or none were"?