template.html, localization with javascript