Updating html and js