Removed unnecessary code from script.js