Update location.hash handler