title: Autocomplete doesn't work
body: <p>I have an issue with the auto complete in js. Here the following code works well for me:</p>
  
  <pre><code>$(function(){
      $( "#txtAuto" ).autocomplete({
          source: ["Choice1","Choice2"],
          minLength:2     
      });
  });
  </code></pre>
  
  <p>But when I change this to the code below for testing it doesn't gives me choices:</p>
  
  <pre><code>$(function(){
      $( "#txtAuto" ).autocomplete({
          source: function( request, response ){
              $.ajax({
                  url: "test.ewd",
                  success: function(data){
                      var res=data.match('\\[[^\\]]*]');
                      return ["Choice1", "Choice2"];                       
                  }
              });
          },
          minLength:2     
      });
  });
  </code></pre>
  
  <p>Any one tell me where I did mistake?</p>