updated appdate.js to properly save/update apps.json app.