update a lot of javascript things