In IE indexOf is very slow, and if we add lot of data to store before, then after store.removeAll(), the replace call done against existing data in prefetchData is making IE spin so popup a warning asking the user if want to kill the script.