Update script.js

Glitch fix.