Fix readFile method to load data at IE