Remove comma and convert to new lines breaks from a string using JavaScript

Output: