I have a number variable that will always only provide digits like this: 249837
How can I format the string like this in javascript? 2,498.37
Edit: This is a bit more difficult from other questions because the last 2 digits in the input are cents with no periods in the variable.