title: error jquery Autocomplete suggestions is undefined
body: <p>I am using <code>jquery aucomplete</code> from
  <a href="https://github.com/devbridge/jQuery-Autocomplete/" rel="nofollow noreferrer">https://github.com/devbridge/jQuery-Autocomplete/</a>
  But it works fine for <code>local</code> and creates problem when using <code>server side script</code></p>
  
  <p><strong>Error img</strong></p>
  
  <p><img src="https://i.stack.imgur.com/MPUim.png" alt="enter image description here"></p>
  
  <p>My <strong>code</strong> is like</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div&gt;
          &lt;input type="text" name="country" id="autocomplete"/&gt;
  &lt;/div&gt;
  &lt;div id="selection"&gt;&lt;/div&gt;
  </code></pre>
  
  <p><strong>CSS</strong></p>
  
  <pre><code>.autocomplete-suggestions { border: 1px solid #999; background: #FFF; cursor: default; overflow: auto; }
  .autocomplete-suggestion { padding: 2px 5px; white-space: nowrap; overflow: hidden; }
  .autocomplete-selected { background: #F0F0F0; }
  .autocomplete-suggestions strong { font-weight: normal; color: #3399FF; }
  </code></pre>
  
  <p><strong>SCRIPT</strong></p>
  
  <pre><code>&lt;script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="jquery.autocomplete.js"&gt;&lt;/script&gt;
  &lt;!-- Above js file can be downloaded from
  https://github.com/devbridge/jQuery-Autocomplete/blob/master/src/jquery.autocomplete.js
  --&gt;
  &lt;script type="text/javascript"&gt;
      $('#autocomplete').autocomplete({
          serviceUrl: 'search.php',
          onSelect: function(suggestion) {
              $('#selction-ajax').html('You selected: ' + suggestion.value + ', ' + suggestion.data);
          }
      });
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>PHP Page SCRIPT</strong> <strong>search.php</strong></p>
  
  <pre><code>&lt;?php
      if($_REQUEST['query']=='a')
      {
          echo json_encode(array('AD'=&gt;'Adrew','AU'=&gt;'Australia'));
      }
      if($_REQUEST['query']=='b')
      {
          echo json_encode(array('BR'=&gt;'Brazil','BA'=&gt;'Bangladesh'));
      }
      if($_REQUEST['query']=='i')
      {
          echo json_encode(array('IN'=&gt;'India','IND'=&gt;'Indonasia'));
      }
      return;
  ?&gt;
  </code></pre>
  
  <p>Thanks for any suggestion.</p>