fixing location hash only firing once problem for chrome and safari