Modified script.js