title: Can requirejs be used for this?
body: <p>I have a simple index page that uses a handful of js files, including jquery and underscore from a CDN.
  To learn, I want to set up requirejs to manage the scripts.</p>
  
  <p>Folder structure:</p>
  
  <pre><code>exampleApp
     -js
       -foo.js
       -main.js
       -require.js
     -index.html
  </code></pre>
  
  <p>index, note foo() is a function in foo.js:</p>
  
  <pre><code> &lt;script data-main="js/main" src="js/requirejs-2.1.9.js"&gt;&lt;/script&gt;
  
  
  &lt;body&gt;
   &lt;button onclick='foo()'&gt;Click me&lt;/button&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>main.js:</p>
  
  <pre><code>requirejs.config({
  
  baseUrl: 'js',
  paths: {
      jquery      : '//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js',
      underscore  : '//cdn.jsdelivr.net/underscorejs/1.5.2/underscore-min.js',
      foo         : 'foo'
  },
  shim: {
      jquery: {
          exports: '$'
      },
      underscore: {
          exports: '_'
      }
  }
  
  });
  
  requirejs(['jquery', 'underscore', 'foo'], function($, _, foo){
  
  });
  </code></pre>
  
  <p>In my foo.js, I use jquery using "$" and underscore using "_", so I want to maintain those symbols if possible.</p>