Added JS function numbersToOrdinal and tests