updated example in jsdoc