added the ability to include submenus in dropdowns
cleaned up submenus code to match style of original authors, updated minified as well