Update server to bind sockets to game objects. Fix a client js bug