reducing redundancy in exports-html.js