Add an annotated source code for client.js from react-protocol