Change pushState to replaceState on initial visit

This stops the browser creating new events at this stage and breaking the back
button.