html and javascript update