Fixed a typo in template JS