Fixed #1 (jQuery 1.8.x bug with detached nodes)