Added formatNumber() to format large numbers with commas, etc.
Derived from B's formatMoney() method