doc / jsdoc, loop sub-functions split