Added js to template.