Update /ja/index.html and /en/index.html article code samples.

Fiexed to use the latest API in the article code samples.