Fixed jshinting.
Fixed bug where animated scrollTo sometimes will overshoot.