Fixed outdated example code in JavaScript integration section.

Change-Id: I4640c3c45d41a1174e259d15d7004d80763cf5fc