More fixes related to upgrading to jQuery 1.10.2