dumb question ;-)) about dynamic naming ..

in one of my partial I have :

<div id="horizontal_carousel">
.....
<script>
  new UI.Carousel("horizontal_carousel");
</script>

but if I need to specify multi carousels, I need to dynamically modify
the name
<div id="<%= product_carousel_name(taxon) %>" >
..
so I would like to have :
<script>
  new UI.Carousel("<%= product_carousel_name(taxon) %>");
</script>

but I don't know how to get it ? any suggestion ?

thanks

erwin