Work around for indexOf JS function. Now works with IE8.