Adding 'dropdown-menu' classes to menus (code copied from open_framework)