changes made for IE8-  support for indexOf and support for currentTaget