add type get into js ajax