rename function.js to chapter3.js