Cleaned up script.js