			import {menu,constructor} from '/lib/gadget-ui/dist/gadget-ui.es.js';

			let authAlert = function(){
				alert("Auth option selected.");
			}

			let menus = [
				{ image: "/img/profilepics/anon.png",
					menuItem:{
						items:[
							{ image: "/img/profilepics/anon.png",
								link: authAlert },
							{ label: "Logout",
								link: "" }
						]
					}},
				{ label: "Options",
					menuItem: {
						items:[ { label: "Files",
											menuItem:{
												items:[
													{	label: "Saving ...",
														link: "" },
													{	label: "Loading ...",
														link: "" }
												]
											}
										},
										{
											label: "Logs",
											menuItem: {
												items:[
													{ label: "System",
														menuItem:{
															items:[
																{	label: "Saving ...",
																	link: "" },
																{	label: "Loading ...",
																	link: "" }
															]
														}
													}
												]
											}
										}
							]
					}}
			];
			var md = constructor( menu, [ document.querySelector("#menu"), { data: menus } ], true );

			md.on( "clicked", function( obj, item ){
				console.log( "clicked" );
				console.log( obj );
				console.log( item );
			});