A line of JS stops all plugins working

A line of JS stops all plugins working

When I run the below code above the init code for jQuery plugins it stops them working. Im just trying to run the code after the DOM has loaded, is there a better way?

<script type="text/javascript"> 
$(document).ready(function() {
// The gallery is hidden so need to unhide it.
document.getElementById('verticalCarousel').style.visibility='visible'
})
</script> 

Thanks.