fixed triggering undefined

fixed triggering undefined, occurs when event name is not in array
deleted unnecessary event machine

deleted unnecessary event machine
added standard calendar generation

added standard calendar generation and its customizing in other file
customize_calendar.js