Update calendar.js

Added OnAfterModalShown and OnAfterModalHidden, so you can update your modal with javascript, useful to show correctly Google maps V3.