Thousands comma for user input box as user types

Hi,
I need help with putting in a “thousands comma separator” to a user input box (set to number) as user types in the number. I have used .toLocaleString() for displaying the output of the user input in a text field and it works fine as below
if (income > ibs1 && income <= ibs2 )
{result.text = String(parseInt(((income - 100,000)*5)+ 0 , 10 ).toLocaleString());}

However I cant seem to get .toLocale String() to work for the user Input box (as the user types in).
My user input field is $w(‘#incomeInput’).value. In the above code income= $w(’ #incomeInput ').value.

Any help/guidance would be great. Thanks in advance