Added stylesheet helpers. createStylesheet, addCssRule and insertCssRule