running an rjs function on page load

i am currently working on a function that adds markers to a map..

without getting into too much detail, the map is initially in a display:none div.. so, i had to do a few things to get it to show up correctly..

initially, i needed to add markers when the user clicked a link. i did this with a call to an rjs.. this just pushed new markers onto the page..

we now want to add these markers on page load..

is there a way i can fire this off once, after the page is loaded.. without any user intervention?