fixes bug in page map .route method, adds basic clientside page loading