change the dataType of ajax request to json