js fix for url hash