javascript split string into array by whitespace