Convert comma separated String into an Array in JavaScript - Clue Mediator