Update script.js

Bugfix