[TIDOC-1898] Update for JavaScript version of docgen

Do not merge till https://github.com/appcelerator/titanium_mobile/pull/6242 is merged.