updated scripts.js