Improved autoplay functionality and restored backwards compatibility for jQuery < 1.7