refactor Remove deprecated `onpopstate` event from History

The `onpopstate` event was deprecated in #1124.
Use `popstate` event instead.