template js file