title: requirejs path issue even when module is loaded and refering to itself
body: <p>The question is how do I fix the path issue for module1 as noted by the console log?</p>
  
  <p>basic info - most recent versions of requirejs, underscore and jquery and are located in library</p>
  
  <p>dir layout</p>
  
  <pre><code>library
  templates
  -default
  --js
  ---lib.js
  ---module1.js
  
  -scripts
  --calendar
  ---module2.js
  --jquery.alpha.js
  --jquery.beta.js
  
  -main.js
  index.php
  </code></pre>
  
  <p>within index.php</p>
  
  <pre><code>&lt;script&gt;var Template="default/"&lt;/script&gt; //todo convert to session 
  &lt;script&gt;var Domain="mygsd"&lt;/script&gt; //todo convert to session 
  &lt;script src="library/require.js/require.js" data-main="templates/main"&gt;
  </code></pre>
  
  <p>main.js</p>
  
  <pre><code>var templatejs = Template+'js/';
  var scripts = 'scripts/';
  require.config({
      baseUrl:"templates/", 
      catchError: true,
      paths: {    
          jquery: '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min',
          underscore: 'library/underscore',
          libs:templatejs+'lib',
          scripts: scripts,
  
      },
      shim: {
          'jQuery': {
              exports: '$'
          },
          'underscore': {
              exports: '_'
          }
      }
  });
  
  require(['libs']);
  define(["jquery", "scripts/jquery.alpha", "scripts/jquery.beta"], function($) {
      $(function() {
          $('body').alpha().beta();
      });
  });
  </code></pre>
  
  <p>libs.js</p>
  
  <pre><code>define([templatejs+'module1', scripts+"calendar/module2"], function(module1ref, module2ref){
  var module1 = new module1ref(),
        module2 = new module2ref();
  console.log(module1.getName() === module2.getModule1Name()); 
  });
  </code></pre>
  
  <p>module1.js</p>
  
  <pre><code>define([], function () {
      var returnedModule = function () {   
          var _name = 'module1 name';
          this.getName = function () {
              return _name;
          };
      };
      return returnedModule;
  });
  </code></pre>
  
  <p>module2.js</p>
  
  <pre><code>define(['module1'], function (module1ref) {
      var module1 = new module1ref();
      var returnedModule = function () {
          this.getModule1Name = function () {
              return module1.getName();
          };
      };
      return returnedModule;
  });  
  </code></pre>
  
  <p>console log</p>
  
  <pre>
  Completed load of main                                                              require.js (line 1531)
  Loading jquery from //ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js      require.js (line 1650)
  Loading scripts/jquery.alpha from templates/scripts//jquery.alpha.js                require.js (line 1650)
  Loading scripts/jquery.beta from templates/scripts//jquery.beta.js                  require.js (line 1650)
  Loading libs from templates/default/js/lib.js                                       require.js (line 1650)
  Completed load of scripts/jquery.alpha                                              require.js (line 1531)
  Completed load of scripts/jquery.beta                                               require.js (line 1531)
  Completed load of libs                                                              require.js (line 1531)
  Loading default/js/module1 from templates/default/js/module1.js                     require.js (line 1650)
  Loading scripts/calendar/module2 from templates/scripts//calendar/module2.js        require.js (line 1650)
  Completed load of default/js/module1                                                require.js (line 1531)
  Initializing default/js/module1                                                     require.js (line 1662)
  Completed load of scripts/calendar/module2                                          require.js (line 1531)
  Loading module1 from templates/module1.js                                           require.js (line 1650)
  Completed load of jquery                                                            require.js (line 1531)
  Initializing jquery                                                                 require.js (line 1662)
  Initializing scripts/jquery.alpha                                                   require.js (line 1662)
  Initializing scripts/jquery.beta                                                    require.js (line 1662)
  Initializing main                                                                   require.js (line 1662)
  "NetworkError: 404 Not Found - http://local:81/mygsd/templates/module1.js"                      module1.js
  </pre>