update menu js twice