Adding chartbeat for ajax requests.