Add working AJAX and LOG. Problem with controller