Backwards compatibility with jQuery.