A Regexp based JS router for location changes