Improve client js example.