Add toggle script to archive template.