adding template.js back O_o