Utilizing history.replaceState