indexOf support for ie8