title: moment-range.js Uncaught SyntaxError: Unexpected identifier
body: <p>In a classic angularJS web app I've tried to add moment libraries and the plug in moment-range also.</p>
  
  <p>On my index.html, I've added the following lines : </p>
  
  <pre><code>&lt;script src="js/external/moment/moment.js"&gt;&lt;/script&gt;
  &lt;script src="js/external/moment/moment-range.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>On another file I'm trying to use moment in a simple way :</p>
  
  <pre><code>var start = moment($scope.startDate);
  var end = moment($scope.endDate);
  var range = moment.range(start,end);
  $scope.years = Array.from(range.by('year'));
  </code></pre>
  
  <p>When I'm reloading my browser (I've tried both on safari and chrome), I'm getting the following error : </p>
  
  <p><strong>Chrome</strong> :</p>
  
  <pre><code>Uncaught SyntaxError: Unexpected identifier
  </code></pre>
  
  <p><strong>Safari</strong> :</p>
  
  <pre><code>[Error]SyntaxError: Unexpected identifier 'moment'. import call expects exactly one argument.
  (fonction anonyme) (moment-range.js:1)
  </code></pre>
  
  <p>What did I missed ?</p>
  
  <p>[Edit] : I've tried before the lines regarding the creation of the moment vars 'start' and 'end', and it's working. It's really just the import of moment-range that's not working.
  Here at the source I'm trying to use :</p>
  
  <pre><code>moment.js : http://momentjs.com/downloads/moment.js
  moment-range.js : https://raw.githubusercontent.com/rotaready/moment-range/master/lib/moment-range.js
  </code></pre>