script.js modified