A simple javascript router