Updated wrt files to self register

Jira: WP-1308
Fix indentation
Fix indentation
Removes TVManager object from global JavaScript scope

Jira-issue: WP-1308