Exercise for template.js