add docstring to generated js