Commiting AJAX calls to server.