title: Using jQuery plugins
body: <p>I am trying to use some of the jQuery plugins in my project (I am using RequireJS). However I don't understand how to do it. I have tried to follow this: <a href="http://requirejs.org/docs/api.html#config-shim" rel="nofollow">http://requirejs.org/docs/api.html#config-shim</a> After what I understand it sets up a dependency of whats inside the array. I thought I could do this in a module:</p>
  
  <pre><code>define(['ui'], function($) {
  
  }
  </code></pre>
  
  <p>However it does not work. What am I missing?
  This is from my require.config:   </p>
  
  <pre><code>shim: {
          'ui': {
              'deps': ['jquery']
          },
          'tools': {
              'deps': ['jquery', 'ui']
          }
  }
  </code></pre>
  
  <p>and paths;</p>
  
  <pre><code>'paths': {
      'jquery': 'lib/jquery/jquery',
      'ui': 'jquery/jquery-ui.min',
      'tools': 'jquery/jquery.tools.min',            
  },
  </code></pre>