Changes template name and location in the JS