title: Not able to create auto suggest feature with dynamic data
body: <p>I am using <a href="https://github.com/underovsky/jquery-tagsinput-revisited" rel="nofollow noreferrer">this plugin</a> to create combination feature of autocomplete and tag. 
  My code  for input field and script related to it </p>
  
  <pre><code>&lt;input id="form-tags-4" name="tags-4" type="text" value=""&gt;
  &lt;script type="text/javascript"&gt;
    $(function() {
  
      $('#form-tags-4').tagsInput({
        'autocomplete': {
  
          source: [
            'apple',
            'banana',
            'orange',
            'pizza'
          ]
        } 
      });
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>It is working fine with static data, however i want that in place of static data that is stored in source dynamic data of database should get stored.</p>
  
  <p>currently my dynamic data is in $normal_skill whose format looks like this</p>
  
  <pre><code>Array
  (
      [0] =&gt; stdClass Object
          (
              [normal_skill] =&gt; HTML
          )
  
      [1] =&gt; stdClass Object
          (
              [normal_skill] =&gt; CSS
          )
  
      [2] =&gt; stdClass Object
          (
              [normal_skill] =&gt; Javascript
          )
  )
  </code></pre>
  
  <p>I tried to collect the data from normal_skill and put it inside an array like this </p>
  
  <pre><code>$items = array();
  foreach($normal_skill as $n_skill) {
   $items[] = $n_skill-&gt;normal_skill;
  }
  </code></pre>
  
  <p>And in place of source i called $items, after replacing source with $items, the autosuggest and tag feature stopped working.</p>
  
  <p>For testing I printed $items, it was showing data but when replaced with source then there was no data. Console is also not showing any particular error. </p>
  
  <p>Can anyone please tell how i can replace source with my data and i would want it also performs letter to letter search. eg:- if i type "h" then words starting with h should come in autosuggest, however right now all the words containing "h" are getting displayed</p>