An IE8  compatibility hack the indexOf function now is defined for Array class