script.js updated