Truncate helper for Handlebars.js