Javascript ical event creation