title: Object doesn't support property or method 'dialog'
body: <p>Refering the <a href="http://www.asp.net/ajaxlibrary/jquery_ui_mvc_intro.ashx" rel="nofollow noreferrer">AjaxControlToolkit</a>, I created a UI dialog from MVC.</p>
  
  <h2>Layout.cshtml</h2>
  
  <pre class="lang-html prettyprint-override"><code> &lt;head&gt;
     &lt;meta charset="utf-8" /&gt;
     &lt;title&gt;@ViewBag.Title - My ASP.NET MVC Application&lt;/title&gt;
     &lt;link href="../../Content/smoothness/jquery-ui-1.10.2.custom.css" rel="stylesheet" type="text/css" /&gt;
     &lt;script src="../../Scripts/jquery-1.9.1.js" type="text/javascript"&gt;&lt;/script&gt;
     &lt;script src="../../Scripts/jquery-ui-1.10.2.custom.min.js" type="text/javascript"&gt;&lt;/script&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")
  &lt;/head&gt;
  </code></pre>
  
  <h2>Index.cshtml</h2>
  
  <pre><code>&lt;h2&gt;jQuery UI Hello World&lt;/h2&gt;          
  &lt;button id="show-dialog"&gt;Click to see jQuery UI in Action&lt;/button&gt;            
  &lt;div id="dialog" title="jQuery UI in ASP.NET MVC" &gt;  
    &lt;p&gt;You now have the power of ASP.NET, the simplicity of client-side scripting with jQuery, and the looks of jQuery UI. Congrats, web slinger!&lt;/p&gt;  
  &lt;/div&gt;  
  
  &lt;script language="javascript" type="text/javascript"&gt;
    $(function () {
      $('#dialog').dialog({
        autoOpen: false,
        width: 600,
        buttons: {
          "Ok": function () { $(this).dialog("close"); },
          "Cancel": function () { $(this).dialog("close"); }
        }
      });
      $("#show-dialog").button().click(function () {
          $('#dialog').dialog('open');
          return false;
      });
    });  
  &lt;/script&gt;    
  </code></pre>
  
  <p>I checked both in IE and Firefox. Firefox throws </p>
  
  <blockquote>
    <p>Typeerror $(...).dialog is not a function</p>
  </blockquote>
  
  <p>IE throws</p>
  
  <blockquote>
    <p>Object doesn't support property or method 'dialog'</p>
  </blockquote>
  
  <p>Any suggestions?</p>