Find the ordinal string value for a number
function getOrdinal(num) { return num + ( (num % 10 == 1 && num % 100 != 11) ? 'st' : (num % 10 == 2 && num % 100 != 12) ? 'nd' : (num % 10 == 3 && num % 100 != 13) ? 'rd' : 'th' ); }