upgraded to newest jquery stuff. changed eventhandling to a clean publish-subscriber pattern. (previous system was based on a undocumented unsupported jquery feature)