Testfunction, remove console.log and modifications to enable monthly and yearly events in calendar