updated script.js

added the variables to the script