update to script.js