refactoring home.js