Update so it works with the latest version of jQuery