Updated script.js with the variables