update js with jquery stuff