javascript: Make doc generator work for JavaScript
javascript: Remove unused error code