mixin indexOf method from underscore