home.js modified