title: Gridstack.js not loading correctly in RequireJS using Underscore.js, jQuery, and jQueryUI
body: <p>I have a problem getting <a href="http://troolee.github.io/gridstack.js/" rel="nofollow noreferrer">Gridstack</a> to work in a Backbone application.</p>
  
  <p>A stripped down version of the RequireJS configuration looks like this:</p>
  
  <pre><code>require.config({
      paths: {
          jquery:                       '../assets/packages/jquery/1.12.0/jquery.min',
          underscore:                   'libs/underscore/underscore-min',
          jqueryui:                     '../assets/packages/jqueryui/1.11.4/custom/jquery-ui.min',,
          gridstack:                    '../assets/packages/gridstack/0.2.4/gridstack.min',
      },
      shim: {
          "gridstack": {
              deps: ["jquery", "jqueryui", "underscore"],
          },
      }
  });
  </code></pre>
  
  <p>The problem is that Gridstack attempts to find fetch files for Lodash and the jQueryUI components "core", "mouse", "draggable", "resizable", and "widget". See picture below.</p>
  
  <p><a href="https://i.stack.imgur.com/mmde1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mmde1.jpg" alt="enter image description here"></a></p>
  
  <p>The Backbone view file (again, boiled down) looks like this:</p>
  
  <pre><code>define([
      'jquery',
      'jqueryui',
      'underscore',
      'backbone',
      'gridstack',
  ], function(
      $,
      jqueryui,
      _,
      Backbone,
      gridstack
      ){
  
      var MyView = Backbone.View.extend({
          el: $("#page"),
          className: "MyView",
  
          initialize: function(){
              console.log('gridstack', gridstack);
          },
      });
  
      return MyView;
  });
  </code></pre>
  
  <p>I'm using Underscore.js (1.8.3) instead of Lodash, but that should be fine per documentation here: <a href="https://github.com/troolee/gridstack.js" rel="nofollow noreferrer">https://github.com/troolee/gridstack.js</a></p>
  
  <p>Is there anyway to force Gridstack to understand that all of its dependencies are already loaded?</p>
  
  <p><strong>EDIT 2016-02-18 12:47:00</strong></p>
  
  <p>jQueryUI is downloaded from <a href="https://jqueryui.com/download/" rel="nofollow noreferrer">https://jqueryui.com/download/</a> and includes everything except the Tooltip; it was causing problems when used with Bootstrap.</p>
  
  <p>I see that many people get the AMD version of jQueryUI, e.g. through Bower. However, the package works fine for everything else, so I'm inclined to think the problem lies with Gridstack.</p>