jquery improvements; issue #20