Replaced native indexOf() with Ext.Array.indexOf()

Replaced native indexOf() method with Ext.Array.indexOf() to gain compatability with IE8.