Merged Calendar fix with AJAX code

Calendar fix to prevent duplicate entries to platform Calendar merged
with AJAX handling code (round 1)