Really simple routing in javascript