Fix escape characters in templates.js