The "standard" way of calling your client script function...

thisForm.addButton({
id : 'custpage_button_id',
label : 'Your button's label',
functionName: 'ClientScriptFunctionName("client_script_function_parameter")'
});
					
thisForm.clientScriptModulePath = 'path to your client script';