js solution jsonmenuids