[javascript] How to convert a string of numbers to an array of numbers?