Add docs for JS lib