Minimalist Javascript routing engine