document TermBuffer with jsdoc