var str="Hello world, welcome to the universe.";
var n=str.indexOf("welcome");
if(n < 0){
alert('no');
}else{
alert('yes');
}