Router for single page applications