updated script.js

Added the variables to the script