wnd.__parentBackReference = window
wnd.__data = myCustomDataObjectInJS;
where I have left the creation of the myCustomDataObjectInJS object to your business logic.
The article I linked creates the "argument" field, my example above creates "__data". What is the name of the field, depends on your preferences, but I would advise using some peculiar notation to be sure you will not override something internal. The two underscores I used above would do the trick.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.