included the javascript to make the calendar functional