Allow replaceState instead of pushState

For #20