Updated upgrades.js to improved format