Array.prototype.remove = function(s)
{
  for(i = 0; i < this.length; i++) {
    if(s == this[i])
    	this.splice(i, 1);
  }
}

Array.prototype.indexOf = function(value){
  for(i = 0; i < this.length; i++){
    if (value == this[i])
     return i;
  }
  return -1;
}
