update menu js functions