adapt example to worker API changes
adapt unit test to vector change
jsdoc fixes