Updated the scrip.js file