fix error in calendar.js
add example for events