added javascipt function which calls onCreate method in custom_calendar.js