Add script and template