PLATFORM-392 Update JS client to simplify example and better comments