Port client script of `navbar_menu` block.