update html and javascript