Terms documentation

Documentation to terms.js