title: jQuery ScrollTo Chrome Fix
body: <p>I've noticed that this doesn't seem to work in Chrome. I found a fix online (that works in the demo) but I can't get it to work for some reason:</p>
  
  <p>Here is the code I have:</p>
  
  <pre><code>$('#button-top').bind('click', function(e) {
      try {
          e.preventDefault();
          target = this.hash;
          $('html, body').scrollTo(target, 150);
      } catch (error) {
          alert('error - ' + error);
      }
  });
  </code></pre>
  
  <p>If it helps, here is a link to the site I'm building (see the link in the bottom right corner of the page):</p>
  
  <p><a href="http://www.mattpealing.co.uk/_dev/" rel="nofollow">http://www.mattpealing.co.uk/_dev/</a></p>