first working version of jquery interface