Update adapter to jQuery