title: require js shim not working for this code
body: <p>I have the following code.</p>
  
  <pre><code>&lt;script src="js/libs/require.js"&gt;&lt;/script&gt;
  &lt;script&gt;
      requirejs.config({
          baseUrl:'js/modules/',
          paths:{
              'bbn':'../libs/backbone',
              'underscore':'../libs/underscore'
          },
          shim:{
              'bbn':{
                  exports:'B',
                  deps:['underscore']
              }
          }
      })  
      requirejs(['bbn'], function(B){
          console.log(B)
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>The function parameter <code>B</code> is not pointing to <code>Backbone</code>. Instead its getting logged as <code>undefined</code>.</p>
  
  <p>I followed the following post and arrived to this point:</p>
  
  <p><a href="https://stackoverflow.com/questions/10907519/loading-highcharts-via-shim-using-requirejs-and-maintaining-jquery-dependency">Loading Highcharts via shim using RequireJS and maintaining jQuery dependency</a></p>
  
  <p>I see both <code>underscore</code> and <code>backbone</code> JavaScript files getting downloaded in firebug.</p>