Fix name in docs.js and add docstring.