fix critical typo in javascript template