clean up some of the event js and make log_level cookie value show on initial page load as well
add check to make sure we only make ajax request if num_events actually changed