Isolated the client code from the server code