set js for ajax