Debugged the errors in the script.js file.