title: jQuery library include order causes error
body: <p>I have a problem with jQuery UI Dialog - it is not closing when I click the X button.</p>
  
  <p>I have detected that the problem goes away if I change the order of my javascript includes:</p>
  
  <p>If I include files in the following order then the problem appears:</p>
  
  <pre><code>&lt;script src="../../Scripts/jquery-1.6.4.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="../../Scripts/jquery-ui-1.8.7.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="../../Scripts/jquery.validate.min.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>If I include files in the following order then the problem disappears:</p>
  
  <pre><code>&lt;script src="../../Scripts/jquery.validate.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="../../Scripts/jquery-1.6.4.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="../../Scripts/jquery-ui-1.8.7.min.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>This seems really strange - I thought that you should include the core jQuery stuff right at the top of the file?  Presumably jquery.validate.min.js has dependencies upon the core jquery libs.</p>
  
  <p>But, this issue would suggest that jquery.validate.min.js has some sort of conflict with the core?</p>
  
  <p>Anyone know the best way of dealing with this?</p>
  
  <p>Apologies that this may appear to be a dupe of <a href="https://stackoverflow.com/questions/7612169/jquery-ui-dialog-will-not-close">jQuery UI Dialog will not close</a> - I wanted to raise a new issue as it seems to be a slightly different problem to the one I originally raised.</p>
  
  <p>Thanks very much.</p>