Simplified tags_template.js