Changed  to take JQuery as parameter in callback