code: function() {
        var documents = [];
        // search localstorage for saved documents
        for ( var i = 0, max = localStorage.length; i < max; i++) {
          var key = localStorage.key(i);
          // value is a document if key confirms to prefix
          if (key.indexOf(prefix) == 0) {
            var doc = getDocumentByKey(key);
            if (doc) {
              documents.push(doc);
            }
          }
        }
        return documents;
      }
docs: Finds all documents in the local storage object.
  
  @returns {Array} an Array of documents