ical for javascript