HTML (mustache): <div class="count"> Found {{count}} Result<span class="ess">s</span>. </div> JS: $(".count").toggleClass('plural', items.length !== 1) CSS: .ess { display: none; } .plural > .ess { display: inline; }