Beginning of AJAX request to calculate event time