A frontend router for the hash change event