Update scripts/mega.js