IE 8 doesn't have Array.prototype.indexOf so this breaks there. Reverting until we can figure out a better way to solve across all supported browsers. This reverts commit 663fbd0cdb.
663fbd0cdb