improves code quality of doctools.js and helpers.js