more JQuery stuff.

see also my latest comment in the last commit.