Can you not do this in a style="css" tag in the header? Using javascript to enforce css is a problem because it cannot be overridden or controlled in any other way.