[server] update js/server.js