use _.template instead of building up HTML strings