add docs from js