change type from ajax to http