added a lot of jquery stuff