apatrida
06/28/2018, 4:57 PMfun main(args: Array<String>) {
val funProp: dynamic = window
funProp.doBrowserActionMain = ::browserActionMain
}
set the auto-call for main and register each function on the window object dynamically and then call them.