Cleaning up script.js