made changes to script.js

made changes to script.js