I want to detect change in pathname if that happens on the page.
For E.g.
window.onhashchange = function() {