Request routing in Javascript apps