Fix content-type for ajax requests