Simplify IO code.
Use TNF labels in extension's js code.
Add/remove some empty lines.
Remove exports to 'window'.