a js route system which use Flask route syntax, which run different `main` functions when match different routes