Try this code
var str = "Haste,Please Haste, Please Haste to the Mountain"
var arr = str.split(',');
var v1="",v2,v3,temp="";
arr.foreach(function(item){
if(item=="Haste"){
v1=v1+","+item;
}
else{
temp=temp+","+item;
}
});
var arr2=temp.split(',');
v2=temp[0];
v3=temp[1];