add indexof prototype