title: jquery autocomplete not filtering results
body: <p>I have jQuery code, which looks this way:</p>
  
  <pre><code>var FoundBanks = [];
   function search() {
    $.ajax({ url: "/bankir/banks_search/",
     data: { term: $("#search").val()},
     dataType: 'json',
     type: "POST",
     success: function(data){
        FoundBanks = [];
        for (var i in data) {
          if (typeof(data[i]) == "object") {
            FoundBanks.push(data[i]);
          }
        }
          $("#search").autocomplete({
            source: FoundBanks,
            minLength: 0,
            focus: function (event, ui) {
              $("#search").val(ui.item.name);
              return false;
            },
            select: function (event, ui) {
              window.location = "/bank/"+ui.item.id;
              return false;
            }
          })
          .data("ui-autocomplete")._renderItem = function (ul, item) {
            console.log("renderitem");
            return $("&lt;li&gt;")
              .append("&lt;a&gt;" + item.name + "&lt;/a&gt;")
              .appendTo(ul);
          };
     }
   });
  }
  </code></pre>
  
  <p>It makes query to MVC-based backend, get result in json (valid results, I checked), form an array.</p>
  
  <p>For example, formed array looks like below: </p>
  
  <pre><code>[{id: "1", name:"abc"}, {id:"2", name: "bac"}, {id: "3", name: "cab"}]
  </code></pre>
  
  <p>If I type "a" - I don't see anything, but when I delete "a" - I see all three. So it's look like the jQuery doesn't know that it should look for a value in <code>object.name</code>.</p>