my $js = <<END_OF_JS;
<script>
function Click$function_name(id) {
function Click$function_name(event) {
const id = event.data.id;
$scr
return false;
}
-