Gen-docs.js

replace end() by done() (end is deprecied)