title: jQuery UI autocomplete is not a function?
body: <p>I'm using autocomplete in a MVC application but it won't autocomplete cause it can't find the function. I did however include the jquery-ui like this:</p>
  
  <pre><code>&lt;head&gt;
          &lt;meta charset="utf-8" /&gt;
          &lt;title&gt;@ViewBag.Title Smoelenboek&lt;/title&gt;
          &lt;link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" /&gt;
          &lt;meta name="viewport" content="width=device-width" /&gt;
          @Styles.Render("~/Content/css")
          @Scripts.Render("~/bundles/modernizr")
          @Scripts.Render("~/Scripts/jquery-2.1.1.js")
          @Scripts.Render("~/Scripts/jquery.unobtrusive-ajax.js")
          @Scripts.Render("~/Scripts/jquery-ui-1.11.2.min.js")
  &lt;/head&gt;
  </code></pre>
  
  <p>however when i run the code like this:</p>
  
  <pre><code> @Html.TextBox("parameter")
      &lt;script type="text/javascript"&gt;
          $(document).ready(function () {
              $('#parameter').autocomplete({
                  source: '@Url.Action("Autocomplete", "Person")'
              });
          })
      &lt;/script&gt;
  </code></pre>
  
  <p>it won't get to the method i've defined there here's the code for that method:</p>
  
  <pre><code>[HttpPost]
          public ActionResult Autocomplete(string term)
          {
              var items = new[] { "Apple", "Pear", "Banana", "Pineapple", "Peach" };
  
              var filteredItems = items.Where(
                  item =&gt; item.IndexOf(term, StringComparison.InvariantCultureIgnoreCase) &gt;= 0
                  );
              return Json(filteredItems, JsonRequestBehavior.AllowGet);
          }
  </code></pre>
  
  <p>it's just testdata but i don't get why it won't work. Perhaps duplicate imports or something? </p>