Updated scripts.js