Adding JSDoc

JSDoc + Factorization