UpgradeMenu.js: fixed some errors