title: Scroll to top button not working in chrome or safari
body: <p>Trying a simple scroll to top button, using javascript, following the usual suggestions, works fine in firefox, can't get it to work in safari or chrome.</p>
  
  <p>the code:</p>
  
  <p>html:</p>
  
  <pre><code>&lt;a href="#top" id="backToTopBtn" class="btn btn-info custom-top-footer-btn" &gt;Top&lt;/a&gt;
  </code></pre>
  
  <p>javacsript:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function() {
  
  $('#backToTopBtn').click(function(){
      $('html, body').animate({scrollTop : 0},800);
      return false;
  });
  
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>It works for me in jsfiddle in chrome and safari, so it shouldn't be the actual code: <a href="http://jsfiddle.net/m0cvsotL/" rel="nofollow">http://jsfiddle.net/m0cvsotL/</a></p>
  
  <p>In my code, I have tried deleting all other javascript, but with no luck. Any ideas what could be causing the problem?</p>