Update template html and js files