Updated calls to old JQuery API