Replacing usage of native indexOf with its underscore analog. This allows the script to be used in ie7 and ie8.