Attempt to fix template.js