up'ing templates.js
closed #2149