JavaScript client-side router.