Use native hash change event correctly