modified script.js