Only do js/css if the menu is added to the dom.