Update script.js

bugfix