Fixing AJAX request.