Fix resetScrollPosition side effect with anchored

In Chrome 34.0.1847.116, replace location.href with
hash will append a history, then popstate will trigger
current url, break restore behavior.