update content and javascript