modified scripts/main.js