function chop(text, maxLength) {
  return text.length <= maxLength ? text : text.substr(0, 27) + "...";
}
Chop off text after a maximum length
@param {string} text
@param {number} maxLength
@returns {string}