title: javascript not working animated percentage bar
body: <p>I know the reason is going to be utterly simple but I can´t make this work, I have a html, a css and a js in the same folder and this <a href="http://cssdeck.com/labs/percentage-bar" rel="nofollow noreferrer">example</a> is not working</p>
  
  <p>I´ve placed the 3 files in the same folder like this:</p>
  
  <p>html:</p>
  
  <pre><code>    &lt;head&gt;
      &lt;!-- Bootstrap Core CSS --&gt;
      &lt;link href="barras.css" rel="stylesheet"&gt;
      &lt;script src="http://code.jquery.com/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="barras.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;div id="container"&gt;
  &lt;h2&gt;&lt;strong&gt;Bar percentage&lt;/strong&gt; inspired by this &lt;a href=
      "http://dribbble.com/shots/1090476-Percentage-Bar"&gt;dribbble shot&lt;/a&gt;&lt;/h2&gt;
  
    &lt;div id="bar-1" class="bar-main-container azure"&gt;
      &lt;div class="wrap"&gt;
        &lt;div class="bar-percentage" data-percentage="38"&gt;&lt;/div&gt;
        &lt;div class="bar-container"&gt;
          &lt;div class="bar"&gt;&lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;  
  &lt;/div&gt;
  </code></pre>
  
  <p>Javascript</p>
  
  <pre><code>$('.bar-percentage[data-percentage]').each(function () {
    var progress = $(this);
    var percentage = Math.ceil($(this).attr('data-percentage'));
    $({countNum: 0}).animate({countNum: percentage}, {
      duration: 2000,
      easing:'linear',
      step: function() {
        // What todo on every count
      var pct = '';
      if(percentage == 0){
        pct = Math.floor(this.countNum) + '%';
      }else{
        pct = Math.floor(this.countNum+1) + '%';
      }
      progress.text(pct) &amp;&amp; progress.siblings().children().css('width',pct);
      }
    });
  });
  </code></pre>
  
  <p>and the css the same as in the example. </p>
  
  <p>I guess I´m not calling the javascript correctly. This is the first time working with js.</p>
  
  <p>Many thanks for your help.</p>