Modified documentation to match example code.

Modified example to be consistent with examples/splitsentence.js