refactor(indexOf) use Array.prototype.indexOf exclusivly

Replaces helper functions with the native ES5 method