Replace .attr('offsetheight') by .height() in order to work with new jQuery version
Update demo files with jQuery 1.9.1 version