Streaming live at 10am (PST)

3 digit comma separator for numbers

I have a calculator setup based on this and would like to add comma separators to the main result. Can anybody offer any tips how I might achieve this?

I have followed the instructions from this post by @cyberdave and been able to add commas to a number value inserted into an html embed with this code:

<script>document.write(numberWithCommas('value'));</script>

…but not yet been successful in applying it to a specific class or id, like my calculator result. Any help would be greatly appreciated.