Update script.js

corrected syntax error