Update script.js

add the variable decalaration