sync docs.js with upstream