add doc generate.js
merged