adjusted home.js