title: Trying to get tag-it to work with an AJAX call
body: <p>Trying to get <a href="http://aehlke.github.com/tag-it/" rel="noreferrer">tag-it</a> to work with an ajax call.</p>
  
  <p>Everything works so far. Except, I am unable to assign a tagSource via an ajax call.</p>
  
  <p>In firebug, the 'data' is returning:</p>
  
  <pre><code>["Ruby","Ruby On Rails"]
  </code></pre>
  
  <p>But its not showing up as I type into the input box.</p>
  
  <pre><code>$('.tags ul').tagit({
    itemName: 'question',
    fieldName: 'tags',
    removeConfirmation: true,
    availableTags: ["c++", "java", "php", "javascript", "ruby", "python", "c"],
    allowSpaces: true,
    // tagSource: ['foo', 'bar']
    tagSource: function() {
      $.ajax({
        url:        "/autocomplete_tags.json",
        dataType:   "json",
        data:       { term: 'ruby' },
        success:    function(data) {
          console.log(data);
          return data;
        }
      });
    }
  });
  </code></pre>
  
  <p><code>console.log(data)</code> returns <code>["Ruby", "Ruby On Rails"]</code>.</p>
  
  <p>Am I missing something here? Anyone else got this to work?</p>