A uri router backed by html5 history api
var Router = require("html5-router")
var router = Router()
router.addRoute("/", renderHome)
router.addRoute("/login", showLoginDialog)
router.on("route", function (event) {
console.log("event", { url: event.url, data: event.data })
})
Router.on("popstate", router)
router()
npm install html5-router