added script to template