server update and javascript