Change currency formatting to accept decimals option and work in IE.

Hi Robert,

Thanks for the script! Like the params flexibility and design. I've changed the formatCurrency function to use the `floatEndDecimals` param to limit the float number display. I've also made sure that the formatting works as expected in IE 7,8,9, Chrome & Firefox which wasn't the case before.

Piotr