I\'m making a web app via flask and I\'m using jQuery in order to render a different template once a thread is done. The route of the template is variable and I want to spec