Functional jquery router