fix JavaScript documentation generation