adding http type to ajax request