Update template.js

modify /@each to @/each