Use underscore indexOf for IE<8 compatibility