Step 2: from JS, addRule() to that style sheet:
document.styleSheets [targetSheetID]. addRule (selector, propName + ":" + value);