updated script.js

Updated the script.js file with the variables needed