added Array.prototype.indexOf