Rename chapter6.js to helperFunctions.js