Update script.js

Fix a few typos.