simple router for single page apps