PHP's number_format in NodeJS