Commits calendar with ajax request