Now works with jQuery 2.x