update menu js to fix scrollbar issue