Updated script.js