added indexOf on Array.prototype for old browsers