Add example JS docstrings