Modified script.js so that event listeners are up to date.