var routes = {
'/all' : routeHandler,
'/products' : routeHandler,
'/categories' : routeHandler
};
var router = Router(routes);
router.init();
function routeHandler() {
console.log('handler');
console.log('route = ' + router.getRoute()[0]);
}