Fix template.js attempt