Async Filereader to stop blocking loop with File API