add comment and prettify bin/js/doc2json.js
prepare for update