1. compatibility with jQuery 1.8 and jQuery 1.9