cleanup of app.js enabling online/offline checks and removing fixed comments