hide div on page load

do you have to do this with javascript? Is there a way you can use rendering conditions on the wrapper instead?

At the worst, create a ui-only checkbox field defaulted to false, and set rendering conditions on your wrapper based on that field.