Modified test.js - Using event 'readable' and Method Chain, and Extracting Method