title: Requirejs: AMD Module not defined
body: <p>I want to use <a href="http://crsten.github.io/datepickk/dist/datepickk.js" rel="nofollow noreferrer">datepickk.js</a> inside my module: even thought this plugin supports AMD I couldn't load it inside RequireJS:
  <a href="http://jsfiddle.net/numediaweb/5xbqqr0j/13/" rel="nofollow noreferrer">http://jsfiddle.net/numediaweb/5xbqqr0j/13/</a></p>
  
  <pre><code>// Config Object
  requirejs.config({
      // Local Directory
      baseUrl: "/js",
      // Script Locations
      paths: {
          // Common Libraries
          "jquery": "//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min",
          "datepickk": "//crsten.github.io/datepickk/dist/datepickk.min"
      }
  });
  
  // Check Dependencies
  requirejs(['jquery', 'datepickk'], function ($, Datepickk) {
      var loadedMods = require.s.contexts._.defined;
      console.log(loadedMods);
      $('#message').text('Loaded modules =&gt; '+JSON.stringify(loadedMods));
      return {};
  });
  </code></pre>
  
  <p>If you check the console you will see that jquery is defined and the module not.</p>
  
  <p>Any idea why this happens?</p>
  
  <p>I tried another variation of loading this module:</p>
  
  <pre><code>require.config({
      paths: {
          'Datepickk': '//crsten.github.io/datepickk/dist/datepickk.min'
      },
  </code></pre>
  
  <p>But then I get this error:</p>
  
  <pre><code>datepickk.js:1146 Uncaught TypeError: Cannot freeze
      at Function.freeze (&lt;anonymous&gt;)
      at Datepickk (datepickk.js:1146)
      at Object.execCb (require.js:1693)
      at Module.check (require.js:881)
      at Module.enable (require.js:1173)
      at Module.init (require.js:786)
      at callGetModule (require.js:1200)
      at Object.completeLoad (require.js:1587)
      at HTMLScriptElement.onScriptLoad (require.js:1714)
  </code></pre>