function dispatch(map){
  var path = location.pathname;
  $.each(map, function(key, fn){
    if(path.match(key)) $(fn);
  });
}

