I have this script to handle loading my pages with pushstate and Popstate or simpler terms, loading a page without reloading the browser, but everytime I try to add a running ho