refactor, added jsdoc script to main branch