Handle popstate on Chrome a bit better