Use native indexOf  instead of indexOfElement