cleanup in home.js