Customizable hierarchical JavaScript menu system