Add window.location.hash management