title: Uncaught TypeError with Modernizr.Load
body: <p>I'm trying to get the following code to work allowing me to use the datepicker. Whilst I have had a variation of this working previously I'm now unable to get it working after a restore.</p>
  
  <p>I get the error 'Uncaught TypeError: undefined is not a function' below the line 'Modernizr.load'</p>
  
  <pre><code>    &lt;script&gt;
  Modernizr.load({
    test: Modernizr.inputtypes.date,
    nope: ['http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/jquery-ui.min.js', 'jquery-ui.css'],
      complete: function () {
          if (window.jQuery) {
              jQuery('input[type=date]').datepicker({
                  dateFormat: 'yy-mm-dd'
              });
          }
      }
  });
  </code></pre>
  
  <p></p>
  
  <p>Any suggestions as to what the cause of this error is?</p>