Updated script.js (NON-WORKING)