Update template.js

A Anonymous Function (template)