Update URL before animation, and fix back button behavior in Firefox.

https://github.com/cferdinandi/smooth-scroll/pull/27
https://github.com/cferdinandi/smooth-scroll/issues/26