Organized the script.js file for now