title: When should I call jQueryUI decoration functions in DurandalJS?
body: <p>In the viewmodel.js file, I want to bind a datepicker on a textbox.</p>
  
  <p>Here is the code</p>
  
  <pre><code>define([
      'jquery',
      'durandal/app',
      'services/logger',
      'jqueryui'
      ],
  function ($, app, logger, jqueryui) {
  function activate() {
      if (!Modernizr.inputtypes.date) {
      $('input[type=date]').datepicker({
              dateFormat: 'mm/dd/yyyy'
          });
      }
      return true;
  };
  var vm = {
      activate: activate
  };
  
  return vm;
  });
  </code></pre>
  
  <p>It appears the jquery and jqueryui are never called. What is wrong with my code? Should I start the jQuery and jQuery UI methods in the <code>activate()</code> section or somewhere else?</p>