Quick and dirty pure  javascript routing