title: JQuery map filtering?
body: <p>I've copied and pasted a <code>list.js</code> file off of the internet. It's obtaining a list of files. However, I want to filter the files, so that the only files returned are those with the name <code>index.html</code>. I'm not familiar with Javascript nor jQuery, but I realize the change probably needs to occur within the first 1-9 lines. Any help would be awesome!</p>
  
  <pre><code>function getInfoFromS3Data(xml) {    
    var files = $.map(xml.find('Contents'), function(item) {    
      item = $(item);    
      return {    
        Key: item.find('Key').text(),    
        LastModified: item.find('LastModified').text(),    
        Size: bytesToHumanReadable(item.find('Size').text()),    
        Type: 'file'    
      }    
    });
  
    var directories = $.map(xml.find('CommonPrefixes'), function(item) {    
      item = $(item);    
      return {    
        Key: item.find('Prefix').text(),    
        LastModified: '',    
        Size: '0',    
        Type: 'directory'    
      }    
    });
  
    if ($(xml.find('IsTruncated')[0]).text() == 'true') {    
      var nextMarker = $(xml.find('NextMarker')[0]).text();    
    } else {    
      var nextMarker = null;    
    }
  
    return {    
      files: files,    
      directories: directories,    
      prefix: $(xml.find('Prefix')[0]).text(),    
      nextMarker: encodeURIComponent(nextMarker)    
    }    
  }
  </code></pre>