Changed event listener, causing problems with calendars

The jQuery ready function was causing problems when used with `calendar_for` method on the same page.