11/17/2016, 4:43 PM
Not sure if that will work in 2.0 or not given the JSDoc tags defining the script type. I am unsure if that will affect how the module is loaded or not. You will definitely need to add your click-handler function to the exports if you do use the same file
return {
      "beforeLoad": beforeLoad,
      "clickHandler": yourClickHandlerFn