This script takes a menus array which contains selectors for top-level menu items and their associated sub-menus and verifies that they all load successfully.