title: Can't implement javascript flip counter in Rails project
body: <p><p>I have problems with implementing javacript flip counter in Rails project.
  <p>In plain html page everything is working fine, but I think I have some problems with asset-pipeline.
  <p>I added all needed files into assets directory. Images, javascripts, css files.
  <p>Here ar my included files:</p>
  
  <pre><code>  &lt;link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css" /&gt;
    &lt;link href="/assets/counter.css?body=1" media="all" rel="stylesheet" type="text/css" /&gt;
    &lt;script src="/assets/jquery.js?body=1" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="/assets/jquery-ui.js?body=1" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="/assets/jquery_ujs.js?body=1" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="/assets/jquery-flipcounter.js?body=1" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="/assets/application.js?body=1" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Here are what scripts should be inclunded( from demo ):</p>
  
  <pre><code>     &lt;!-- My flip counter script, REQUIRED --&gt;
       &lt;script type="text/javascript" src="js/flipcounter.js"&gt;&lt;/script&gt;
       &lt;!-- Style sheet for the counter, REQUIRED --&gt;
      &lt;link rel="stylesheet" type="text/css" href="css/counter.css" /&gt;
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>  &lt;div id="counter" class="flip-counter"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>and code from application.js(<b>working in plain HTML file</b>):</p>
  
  <pre><code>   $(document).ready(function(){
     var myCounter = new flipCounter("counter", {inc: 1, pace: 500});
      ...});
  </code></pre>
  
  <p>and here is rar archive with working counter: <a href="https://dl.dropbox.com/u/86122402/cnanney-apple-style-flip-counter-13fd00129a41.rar" rel="nofollow">https://dl.dropbox.com/u/86122402/cnanney-apple-style-flip-counter-13fd00129a41.rar</a>.
  <p>What I'm doing wrong ?</p>