Simple router for HTML5 application