Issue 5971: remove function indirection when calling a protected function

Previously, to trigger an export, the user had to call
`window.NetExport.triggerExport("token")()`. Now, she only has to call
`window.NetExport.triggerExport("token")`.