type in ajax