update home.js for menus

fix to check if referencing properly