Fixes in script.js