refactor home.js
merge