Add didStop block to JSIncrementalFileReader, refactoring some code.