Struggling find the right solution here, using the code below I get the following result:
parseFloat(value).toLocaleString(\'en-GB\') 10000 => 10,000 51