ion(a, b){
				return a.timestamp < b.timestamp ? 1 : -1;
			};

			app.eventLog = [];
			var log = function(element, ev){
				console.info(ev.type, ev.detail);
				try{
					var message = JSON.stringify(ev.detail);
				}catch(e){
					var error = 'See console for details';
					var message = {};
					Object.keys(ev.detail).forEach(function(key){
						try{
							JSON.stringify(ev.detail[key]);
							message[key] = ev.detail[key];
						}catch(e){
							message[key] = '...';
						}
					});
					message