Add jsdoc task and docstring