Update script.js

did things