Updated home box show/hide function to global js file