JS Split Text on Spaces

var string = "text to split";
var words = string.split(" ");
Rich Rhinoceros