title: Adding a jQuery delay on autocomplete
body: <p>I'm trying to create a jQuery autocomplete for an application:</p>
  
  <pre><code>$("#search-input").on('keyup', function() {
      search = $(this).val();
      autocomplete_div = $(".autocomplete")
      $.get('/ajax/search/', {'search': search,}, function(response){
          autocomplete_div.html(response)
      });
  });
  </code></pre>
  
  <p>What would I need to add to the above code to add a 400ms delay?</p>