menu and overlay triggers in js