Are you summing the opportunity amounts in JS? If you can use the currency field renderer you should get commas. Otherwise if you are just injecting a field value - you may need to parse the number and add commas.
If you use an aggregate model you can simply use field merge syntax - that will correct include the currency renderer.