add jQuery Callbacks

Utility recode to jQuery callbacs