fix date_calendar init function when using turbolinks