Add changes to cf-fullcalendar from main site.
Move function definitions for fullcalendar field.

This was working in cases where the code was evaluated prior to the jQuery
ready event firing, but broke when the code was inserted after page load
(as is the case with a field that is initially hidden in Caldera Forms) as
the callback for jQuery ready was evaluated immediately.