Add window.location.hash support