title: How to do an automatic search if user pauses input for 1-2 seconds?
body: <p>I have a <code>form_tag</code> that submits a user's search remotely to a Rails controller method, which returns the results in JS format.</p>
  
  <p>How can I automatically submit this form:</p>
  
  <ol>
  <li>When a user has entered in at least 2 characters</li>
  <li>When the user has paused for at least 1 second?</li>
  </ol>