server update and javascript

good copy