Workaround for failing indexOf polyfil