Set defaul dataType as json for $.ajax