String.prototype.trimEllip = function (length) { return this.length > length ? this.substring(0, length) + "..." : this; }