finish backport jquery.couch.js client code to 0.11.x. closes COUCHDB-819. Thanks Nome Consulting for pointing out the bug