in reply to Navigating multiple layers webpage

See https://metacpan.org/pod/WWW::Mechanize::FAQ#JavaScript, this is the beginning