The JS call allows you to perform an action when the user clicks on the button.
It can be a Google Analytics or Google Tag Manager event (example: data feedback on the number of clicks or on conversions made after the button click) or a simple Javascript call.