Adding styles to custom controls through javascript


We have a custom data grid control. We would like to add some styles to custom grid which are defined in javascript file. To apply those changes , I am calling javascript function in document.ready() by passing grid name from each page which are using that control.

Is there anyway we can call that javascript function from within custom control class so that it applies to each grid instead calling javascript function each page ?