refactor page_home.js