Executing server-side commands with AJAX