function onEvent(name, event) {
	if (typeof event === 'string') {
		console.log(event);
	}
	//console.log(name, JSON.stringify(event, null, 2));
}
// Displays events on the console.
Displays events on the console.
Displays events on the console .
function onEvent(name, event) {
	if (typeof event === 'string') {
		console.log(event);
	}
}
function onEvent ( name , event ) { if ( typeof event === 'string' ) { console . log ( event ) ; } }
Displays events on the console.
Displays events on the console .
//console.log(name, JSON.stringify(event, null, 2));