title: Using JS/jQuery to do string search/fuzzy matching?
body: <p>entirely in JS, no server backend. I need to allow the user to search and then show a list of matched names. I'm using jQuery UI AutoComplete but need some JS to filter the results.</p>
  
  <p>Given an Array of names:</p>
  
  <pre><code>Bob Hope
  James Jones
  Steve Jobs
  Larry McBridge
  </code></pre>
  
  <p>Given a search term like  Bo</p>
  
  <p>How can I get just Bob Hope to return</p>
  
  <p>Given a Search term like b:</p>
  
  <p>How can I get all but James Jones?</p>
  
  <p>Any simple JS for comparing two strings? Thanks</p>