added a few functions to home.js