package my ajax function