Add jsdoc to source. Fixes #49