adding indexOf for IE8