Better pushState shim