#175: Fix issue on IE8, don't use array.indexOf