Javascript Route extension, for easy managing urls