Improve experimental doc parsing for JavaScript