jQuery 1.9 compatibility fixes

Also takes care of a few core deprecations

Change-Id: Ia7f4376cd2ca5064ab486d5213cb842c35804eae
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/591
Merge "jQuery 1.9 compatibility fixes"