make sub-menus and JS play nicer