code: function short(str, max)
  			{
  				if (str.length > max)
  				{
  					str = str.substring(0, Math.round(max / 2)) + '...' +
  						str.substring(str.length - Math.round(max / 4));
  				}
  				
  				return str;
  			}
docs: Helper function to shorten strings