moving and renaming template.js