Adding script and template