Routing in decentralized single page application