Monkey-patch then as well as pipe with jQuery 1.8+