title: SyntaxError loading html page that has modernizr javascript code
body: <p>I came across <a href="http://jsfiddle.net/dsbonev/cCCZ2/" rel="nofollow">this page</a> which uses <strong><a href="http://modernizr.com/" rel="nofollow">Modernizr</a></strong> library.I couldn't make out how this works.In jsfiddle page ,it works with no trouble..I  put all that code into a <a href="http://pastebin.com/HCN0Y6XX" rel="nofollow">test.js</a> file and added it inside <code>&lt;head&gt; element</code> using <code>&lt;script type="text/javascript"  src="test.js" &gt;&lt;/script&gt;</code> ..</p>
  
  <p>I couldn't figure out how this javascript can be loaded when the html page loads.When I load the <a href="http://pastebin.com/zDr9PRp7" rel="nofollow">html page</a>,I get an error in <code>firebug</code> in <code>chrome version 18.0.1025.162</code> that <code>line55</code> has <code>Uncaught SyntaxError: Unexpected token ILLEGAL</code></p>
  
  <p>I am using <code>jquery</code> 's <code>$(document).ready()</code> method to initialize most of my other javascript functions..But I am at a loss as to how I can use the above code with jquery..</p>
  
  <p>Can some javascript experts help?</p>