Fixed selection display bug in calendar

- on document ready has been to early
- additionally fixed a date bug in the event that was leading to events showing up on wrong day because of timezone shifts