added scripts to template