Added scripts to template