AJAX get request returns incorrect format response