refactor event_category() to enable CSS without using events_to_dict()
emulate the fullcalendar color scheme