(refactor) add home.js with checkUpdates function