Event listener for hashchange on window should be set for all browsers