Follow up on jQuery changes

They resulted in a bunch of functionality being broken. Should
have run Travis before merging upstream

Signed-off-by: Rohan Jain <crodjer@gmail.com>