Event subscription via AJAX