New script.js file added
chapt 2 example with alert boxes