filereader memory onload fix