title: error while using jQuery UI Autocomplete in TypeScript
body: <p>I am using  jQuery UI Autocomplete 1.8.16 in TypeScript, Its giving me error </p>
  
  <p>Unhandled exception at line 303, column 3 in http:/Scripts/jquery.ui.autocomplete.js
  0x800a138f - Microsoft JScript runtime error: Object expected</p>
  
  <p>Autocomplete is using </p>
  
  <ul>
  <li>jquery.ui.core.js</li>
  <li>jquery.ui.widget.js</li>
  <li>jquery.ui.position.js</li>
  </ul>
  
  <p>i am including definition files which i downloaded from internet</p>
  
  <pre><code>&lt;reference path="../jquery.d.ts" /&gt;
  &lt;reference path="../jqueryui.d.ts" /&gt; its version is jQueryUI 1.9
  </code></pre>
  
  <p>not sure its a version conflict or what.Can you please tell me how i can fix that.</p>
  
  <p>My autocomplete code in TypeScript is</p>
  
  <pre><code>$(document).ready(function () {
  
  $(function () {
      $("#FileCode").autocomplete({
          source: this.GetFileCodes,           
          minLength: 3,
          select: function (event, ui) {
              if (ui.item) {
                  $("#FilCode").val(ui.item.value);
                  $("form").submit();
              }
          }
      });
  });
  
  })
  </code></pre>