...
Follow the below steps to enable BrightScript JavaScript objects.
Enabling with BrightAuthor
Make sure that you are using BrightAuthor version 4.1 or later. Earlier versions do not have the code that enables BrightScript objects for JavaScript.
Also, ensure that the Enable external data box is checked within the HTML5 state that is displaying your page.
...
Enabling with BrightScript
Include the brightsign_js_objects_enabled:true
entry with the associative array that is passed during creation of the roHtmlWidget instance:
...