Replaced indexOf with Y.Array.indexOf for browsers without ECMA