refactoring home.js best-cloud