Update to be compatible with jQuery v1.9