title: jquery autocomplete not being called
body: <p>Please help; the following code does not execute an autocomplete.</p>
  
  <pre><code>$(document).ready(function () {
      $('div.chapter a[href*="wikipedia"]').attr({
          rel: 'external',
          title: function () {
              return 'Learn more about ' + $(this).text()
              + ' at Wikipedia.';
          },
          id: function (index, oldValue) {
              return 'wikilink-' + index;
          }
      });
  
      $('&lt;a href="#top"&gt;back to top&lt;/a&gt;').insertAfter('div.chapter p');
      $('&lt;a id="top"&gt;&lt;/a&gt;').prependTo('body');
  
      $('#shakeButton').button({
          icons: { primary: 'ui-icon-pause' }
      });
  
      $('#shakeButton').click(function () {
  
          $('#shakeButton').effect('shake', {
              distance: 5,
              duration: 100
          });
  
  
      });
  
      $('#nameText').autocomplete({
          source: GetNames()
          //,minLength: 3
      });
  });
  
  
  function GetNames() {
  
      var availableTags = [];
  
      var params = {
          term: $('#nameText').val()
      };
  
      var request = $.ajax({
          url: "/Home/Autocomplete",
          type: "GET",
          contentType: "application/json",
          data: JSON.stringify(params)
      });
  
      request.done(function (data) {
         availableTags = data
         return availableTags;
      });
  
  
      //var availableTags = [
      //  "ActionScript",
      //  "AppleScript",
      //  "Asp",
      //  "BASIC",
      //  "C",
      //  "C++",
      //  "Clojure",
      //  "COBOL",
      //  "ColdFusion",
      //  "Erlang",
      //  "Fortran",
      //  "Groovy",
      //  "Haskell",
      //  "Java",
      //  "JavaScript",
      //  "Lisp",
      //  "Perl",
      //  "PHP",
      //  "Python",
      //  "Ruby",
      //  "Scala",
      //  "Scheme"
      //];
      //return availableTags;
  
  }
  </code></pre>