clean up upgrades.js