Update /ja/index.html article code samples.

The Japanese article code samples must be also updated for API changes. #1269