update html and js