added lots of jquery stuff