title: Uncaught TypeError: Chart is not a constructor when using Chart.js
body: <p>I'm working on my first Cordova projects and am trying to use Chart.js. The documentation states that Chart.js should be included like this:</p>
  
  <pre><code>&lt;script src="Chart.js"&gt;&lt;/script&gt;
  &lt;script&gt;
      var myChart = new Chart({...})
  &lt;/script&gt;
  </code></pre>
  
  <p>I installed the library using bower and it is now present under <code>www/lib/chart.js</code>. Chrome gives me <code>Failed to load resource: the server responded with a status of 404</code> when I'm loading <code>Chart.js</code> or <code>lib/chart.js</code>. </p>
  
  <p>When I load <code>lib/chart.js/src/chart.js</code> I get a different error saying <code>Uncaught TypeError: Chart is not a constructor</code> in this line:</p>
  
  <pre><code>  var ctx = document.getElementById("myChart");
    var myChart = new Chart(ctx, { //...
  </code></pre>
  
  <p>This is what's in the file chart.js:</p>
  
  <pre><code>var Chart = require('./core/core.js')();
  
  require('./core/core.helpers')(Chart);
  // ...
  
  window.Chart = module.exports = Chart;
  </code></pre>
  
  <p>Is this the right <code>chart.js</code> file?</p>
  
  <p>Thanks in advance for any help!</p>