Add quick patch to keep compatibility with jQuery 1.9+