Prevent generating navigation history. (#143)

If the window.history.replaceState function is available, it will be
used to update the current URL when navigation rather than setting
window.location.hash directly. This effectively replaces the current
navigation entry instead of creating a new one.