IE compatibility for HashChange listener