force to local the global functions for performance
add data sample for calendarData
wrong placement
add options to events and participants, better date format in getAllEventsDate(), and add JSON serialization method