creating a new javascript file to test chapter examples
adding a link for ch4.js file
removing alert and adding document.write to avoid pop up window
removing show and adding console.log siince show is not defined in my browser