Using this code base you can add a new on odoo form view which will fire the JavaScript's click function. Version 13 only.
In Pycharm, go to "File/Settings/Languages and Frameworks/Javascript/Webpack" (use the search tool) and select the Manually option, and set the webpack.config.js file ...