Fix recreating the filereader after eof; Use fixed line-by-line instead of the buggy npm one