code: function(docId, options, ajaxOptions) {
            options = options || {};
            if (db_opts.attachPrevRev || options.attachPrevRev) {
              $.extend(options, {
                beforeSuccess : function(req, doc) {
                  rawDocs[doc._id] = {
                    rev : doc._rev,
                    raw : req.responseText
                  };
                }
              });
            } else {
              $.extend(options, {
                beforeSuccess : function(req, doc) {
                  if (doc["jquery.couch.attachPrevRev"]) {
                    rawDocs[doc._id] = {
                      rev : doc._rev,
                      raw : req.responseText
                    };
                  }
                }
              });
            }
            ajax({url: this.uri + encodeDocId(docId) + encodeOptions(options)},
              options,
              "The document could not be retrieved",
              ajaxOptions
            );
          }
docs: Returns the specified doc from the specified db.
  @see <a href="http://techzone.couchbase.com/sites/default/files/
  uploads/all/documentation/couchbase-api-dbdoc.html#couchbase-api-
  dbdoc_db-doc_get">docs for GET /db/doc</a>
  @param {String} docId id of document to fetch
  @param {ajaxSettings} options <a href="http://api.jquery.com/
  jQuery.ajax/#jQuery-ajax-settings">jQuery ajax settings</a>
  @param {ajaxSettings} ajaxOptions <a href="http://api.jquery.com/
  jQuery.ajax/#jQuery-ajax-settings">jQuery ajax settings</a>