fix reference to templates.js