refactoring for enhanced html5 menus...