Update template.js

strip html