Html5 pushState workaround