[doc-js] Fixed syntax; improved documentation