added scripts to main template