This whole method could just be a _.map function

    return _.map(documents, function (doc) { return doc.id; }