updated the script.js file - spell check