An isomorphic JS router