How to Convert String Value to Array in JavaScript?