A router for the browser (client-side JavaScript)