title: Browserify loaded with JqueryUI not working
body: <p>I'm having problems using Browserify to load Jquery-UI.</p>
  
  <p>The node modules for jquery and jquery-ui are loading fine with no issues. Only when I try to require them into a bundle using browserify, and load JqueryUI datepicker I get the following javascript error in the browser:</p>
  
  <blockquote>
    <p>jQuery.Deferred exception: $(...).datepicker is not a function
    TypeError: $(...).datepicker is not a function</p>
  </blockquote>
  
  <p>The <code>app.js</code> contains the following:</p>
  
  <pre><code>window.$ = window.jQuery = require('jquery');
  require('jquery-ui');
  </code></pre>
  
  <p>I'm also using gulp and laravel-elixer and my <code>package.json</code> contains:</p>
  
  <pre><code>{
     "private": true,
     "scripts": {
       "production": "gulp --production",
       "dev": "gulp watch",
     },
     "dependencies": {
       "gulp": "^3.9.1",
       "jquery": "^3.1.0",
       "jquery-ui": "^1.12.0",
       "laravel-elixir": "^5.0.0"
     }
  }
  </code></pre>
  
  <p>The <code>gulpfile.js</code> contains:</p>
  
  <pre><code>var elixir = require('laravel-elixir');
  elixir(function (mix) {
      mix.sass('app.scss');
      mix.browserify('app.js');
      mix.version(['css/app.css', 'js/app.js']);
  });
  </code></pre>
  
  <p>Is this a bug or I'm doing something wrong? thanks</p>