Adding https://github.com/careilly fix to support jQuery 1.9